Create a new list
curl --request POST \
--url https://channels-service-alpha.fourvenues.com/lists \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"list_rate_id": "5f8d0f8b9d2b3b0017b6d8a0",
"send_notification": false,
"list": {
"qr_code": "ABCDE12345",
"observations_referral": "Observations...",
"for": 5,
"full_name": "John Doe",
"email": "john@fourvenues.com",
"language": "en"
}
}
'import requests
url = "https://channels-service-alpha.fourvenues.com/lists"
payload = {
"list_rate_id": "5f8d0f8b9d2b3b0017b6d8a0",
"send_notification": False,
"list": {
"qr_code": "ABCDE12345",
"observations_referral": "Observations...",
"for": 5,
"full_name": "John Doe",
"email": "john@fourvenues.com",
"language": "en"
}
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
list_rate_id: '5f8d0f8b9d2b3b0017b6d8a0',
send_notification: false,
list: {
qr_code: 'ABCDE12345',
observations_referral: 'Observations...',
for: 5,
full_name: 'John Doe',
email: 'john@fourvenues.com',
language: 'en'
}
})
};
fetch('https://channels-service-alpha.fourvenues.com/lists', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://channels-service-alpha.fourvenues.com/lists",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'list_rate_id' => '5f8d0f8b9d2b3b0017b6d8a0',
'send_notification' => false,
'list' => [
'qr_code' => 'ABCDE12345',
'observations_referral' => 'Observations...',
'for' => 5,
'full_name' => 'John Doe',
'email' => 'john@fourvenues.com',
'language' => 'en'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://channels-service-alpha.fourvenues.com/lists"
payload := strings.NewReader("{\n \"list_rate_id\": \"5f8d0f8b9d2b3b0017b6d8a0\",\n \"send_notification\": false,\n \"list\": {\n \"qr_code\": \"ABCDE12345\",\n \"observations_referral\": \"Observations...\",\n \"for\": 5,\n \"full_name\": \"John Doe\",\n \"email\": \"john@fourvenues.com\",\n \"language\": \"en\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://channels-service-alpha.fourvenues.com/lists")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"list_rate_id\": \"5f8d0f8b9d2b3b0017b6d8a0\",\n \"send_notification\": false,\n \"list\": {\n \"qr_code\": \"ABCDE12345\",\n \"observations_referral\": \"Observations...\",\n \"for\": 5,\n \"full_name\": \"John Doe\",\n \"email\": \"john@fourvenues.com\",\n \"language\": \"en\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://channels-service-alpha.fourvenues.com/lists")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"list_rate_id\": \"5f8d0f8b9d2b3b0017b6d8a0\",\n \"send_notification\": false,\n \"list\": {\n \"qr_code\": \"ABCDE12345\",\n \"observations_referral\": \"Observations...\",\n \"for\": 5,\n \"full_name\": \"John Doe\",\n \"email\": \"john@fourvenues.com\",\n \"language\": \"en\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"_id": "1643064796675",
"event_id": "1643064796675",
"list_rate_id": "1643064796675",
"total_men": 3,
"total_women": 2,
"total_no_gender": 0,
"prices": [
{
"_id": "1683803249490",
"men": 2,
"women": 1,
"no_gender": 0,
"price": 50
}
],
"channel_id": "1643064796675",
"qr_code": "P3SQ1TFSK",
"full_name": "John Doe",
"email": "email@email.com",
"tags": [
"Free drink"
],
"for": 5,
"enter": 5,
"language": "es",
"observations_referral": "asdfghjkl123456",
"observations_reception": "",
"entry_time": "2024-09-04T07:32:26.000Z",
"raised": 153
},
"success": true
}Lists
Create a new list
POST
/
lists
Create a new list
curl --request POST \
--url https://channels-service-alpha.fourvenues.com/lists \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"list_rate_id": "5f8d0f8b9d2b3b0017b6d8a0",
"send_notification": false,
"list": {
"qr_code": "ABCDE12345",
"observations_referral": "Observations...",
"for": 5,
"full_name": "John Doe",
"email": "john@fourvenues.com",
"language": "en"
}
}
'import requests
url = "https://channels-service-alpha.fourvenues.com/lists"
payload = {
"list_rate_id": "5f8d0f8b9d2b3b0017b6d8a0",
"send_notification": False,
"list": {
"qr_code": "ABCDE12345",
"observations_referral": "Observations...",
"for": 5,
"full_name": "John Doe",
"email": "john@fourvenues.com",
"language": "en"
}
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
list_rate_id: '5f8d0f8b9d2b3b0017b6d8a0',
send_notification: false,
list: {
qr_code: 'ABCDE12345',
observations_referral: 'Observations...',
for: 5,
full_name: 'John Doe',
email: 'john@fourvenues.com',
language: 'en'
}
})
};
fetch('https://channels-service-alpha.fourvenues.com/lists', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://channels-service-alpha.fourvenues.com/lists",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'list_rate_id' => '5f8d0f8b9d2b3b0017b6d8a0',
'send_notification' => false,
'list' => [
'qr_code' => 'ABCDE12345',
'observations_referral' => 'Observations...',
'for' => 5,
'full_name' => 'John Doe',
'email' => 'john@fourvenues.com',
'language' => 'en'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://channels-service-alpha.fourvenues.com/lists"
payload := strings.NewReader("{\n \"list_rate_id\": \"5f8d0f8b9d2b3b0017b6d8a0\",\n \"send_notification\": false,\n \"list\": {\n \"qr_code\": \"ABCDE12345\",\n \"observations_referral\": \"Observations...\",\n \"for\": 5,\n \"full_name\": \"John Doe\",\n \"email\": \"john@fourvenues.com\",\n \"language\": \"en\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://channels-service-alpha.fourvenues.com/lists")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"list_rate_id\": \"5f8d0f8b9d2b3b0017b6d8a0\",\n \"send_notification\": false,\n \"list\": {\n \"qr_code\": \"ABCDE12345\",\n \"observations_referral\": \"Observations...\",\n \"for\": 5,\n \"full_name\": \"John Doe\",\n \"email\": \"john@fourvenues.com\",\n \"language\": \"en\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://channels-service-alpha.fourvenues.com/lists")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"list_rate_id\": \"5f8d0f8b9d2b3b0017b6d8a0\",\n \"send_notification\": false,\n \"list\": {\n \"qr_code\": \"ABCDE12345\",\n \"observations_referral\": \"Observations...\",\n \"for\": 5,\n \"full_name\": \"John Doe\",\n \"email\": \"john@fourvenues.com\",\n \"language\": \"en\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"_id": "1643064796675",
"event_id": "1643064796675",
"list_rate_id": "1643064796675",
"total_men": 3,
"total_women": 2,
"total_no_gender": 0,
"prices": [
{
"_id": "1683803249490",
"men": 2,
"women": 1,
"no_gender": 0,
"price": 50
}
],
"channel_id": "1643064796675",
"qr_code": "P3SQ1TFSK",
"full_name": "John Doe",
"email": "email@email.com",
"tags": [
"Free drink"
],
"for": 5,
"enter": 5,
"language": "es",
"observations_referral": "asdfghjkl123456",
"observations_reception": "",
"entry_time": "2024-09-04T07:32:26.000Z",
"raised": 153
},
"success": true
}Authorizations
Body
application/json
⌘I