Register a user for event preregister
curl --request POST \
--url https://channels-service-alpha.fourvenues.com/events/{eventId}/preregister \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"fullname": "<string>",
"email": "<string>",
"phone": "<string>",
"birthdate": "<string>",
"country": "<string>",
"state": "<string>",
"zipCode": "<string>",
"personalDocument": "<string>",
"remarketing": true,
"remarketing_sms": true
}
'import requests
url = "https://channels-service-alpha.fourvenues.com/events/{eventId}/preregister"
payload = {
"fullname": "<string>",
"email": "<string>",
"phone": "<string>",
"birthdate": "<string>",
"country": "<string>",
"state": "<string>",
"zipCode": "<string>",
"personalDocument": "<string>",
"remarketing": True,
"remarketing_sms": True
}
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({
fullname: '<string>',
email: '<string>',
phone: '<string>',
birthdate: '<string>',
country: '<string>',
state: '<string>',
zipCode: '<string>',
personalDocument: '<string>',
remarketing: true,
remarketing_sms: true
})
};
fetch('https://channels-service-alpha.fourvenues.com/events/{eventId}/preregister', 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/events/{eventId}/preregister",
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([
'fullname' => '<string>',
'email' => '<string>',
'phone' => '<string>',
'birthdate' => '<string>',
'country' => '<string>',
'state' => '<string>',
'zipCode' => '<string>',
'personalDocument' => '<string>',
'remarketing' => true,
'remarketing_sms' => true
]),
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/events/{eventId}/preregister"
payload := strings.NewReader("{\n \"fullname\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\",\n \"birthdate\": \"<string>\",\n \"country\": \"<string>\",\n \"state\": \"<string>\",\n \"zipCode\": \"<string>\",\n \"personalDocument\": \"<string>\",\n \"remarketing\": true,\n \"remarketing_sms\": true\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/events/{eventId}/preregister")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"fullname\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\",\n \"birthdate\": \"<string>\",\n \"country\": \"<string>\",\n \"state\": \"<string>\",\n \"zipCode\": \"<string>\",\n \"personalDocument\": \"<string>\",\n \"remarketing\": true,\n \"remarketing_sms\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://channels-service-alpha.fourvenues.com/events/{eventId}/preregister")
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 \"fullname\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\",\n \"birthdate\": \"<string>\",\n \"country\": \"<string>\",\n \"state\": \"<string>\",\n \"zipCode\": \"<string>\",\n \"personalDocument\": \"<string>\",\n \"remarketing\": true,\n \"remarketing_sms\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"_id": "<string>"
},
"success": true
}Events
Register a user for event preregister
Registers an attendee on the preregister list for the given event.
Requires API key capability preregister:write (or all:write). The event must belong to the API key organization.
Registration is only accepted when the event has an active preregister configuration, the event is still purchasable, and the preregister window is open. Use GET /events/{id} to inspect preregister settings and which fields are required.
Additional fields beyond fullname and email may be required depending on the event preregister configuration.
POST
/
events
/
{eventId}
/
preregister
Register a user for event preregister
curl --request POST \
--url https://channels-service-alpha.fourvenues.com/events/{eventId}/preregister \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"fullname": "<string>",
"email": "<string>",
"phone": "<string>",
"birthdate": "<string>",
"country": "<string>",
"state": "<string>",
"zipCode": "<string>",
"personalDocument": "<string>",
"remarketing": true,
"remarketing_sms": true
}
'import requests
url = "https://channels-service-alpha.fourvenues.com/events/{eventId}/preregister"
payload = {
"fullname": "<string>",
"email": "<string>",
"phone": "<string>",
"birthdate": "<string>",
"country": "<string>",
"state": "<string>",
"zipCode": "<string>",
"personalDocument": "<string>",
"remarketing": True,
"remarketing_sms": True
}
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({
fullname: '<string>',
email: '<string>',
phone: '<string>',
birthdate: '<string>',
country: '<string>',
state: '<string>',
zipCode: '<string>',
personalDocument: '<string>',
remarketing: true,
remarketing_sms: true
})
};
fetch('https://channels-service-alpha.fourvenues.com/events/{eventId}/preregister', 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/events/{eventId}/preregister",
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([
'fullname' => '<string>',
'email' => '<string>',
'phone' => '<string>',
'birthdate' => '<string>',
'country' => '<string>',
'state' => '<string>',
'zipCode' => '<string>',
'personalDocument' => '<string>',
'remarketing' => true,
'remarketing_sms' => true
]),
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/events/{eventId}/preregister"
payload := strings.NewReader("{\n \"fullname\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\",\n \"birthdate\": \"<string>\",\n \"country\": \"<string>\",\n \"state\": \"<string>\",\n \"zipCode\": \"<string>\",\n \"personalDocument\": \"<string>\",\n \"remarketing\": true,\n \"remarketing_sms\": true\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/events/{eventId}/preregister")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"fullname\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\",\n \"birthdate\": \"<string>\",\n \"country\": \"<string>\",\n \"state\": \"<string>\",\n \"zipCode\": \"<string>\",\n \"personalDocument\": \"<string>\",\n \"remarketing\": true,\n \"remarketing_sms\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://channels-service-alpha.fourvenues.com/events/{eventId}/preregister")
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 \"fullname\": \"<string>\",\n \"email\": \"<string>\",\n \"phone\": \"<string>\",\n \"birthdate\": \"<string>\",\n \"country\": \"<string>\",\n \"state\": \"<string>\",\n \"zipCode\": \"<string>\",\n \"personalDocument\": \"<string>\",\n \"remarketing\": true,\n \"remarketing_sms\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"_id": "<string>"
},
"success": true
}Authorizations
Path Parameters
The id of the event.
Body
application/json
Request body. fullname and email are always required; the event's
preregister configuration may require additional fields at runtime.
ISO-8601 date.
Available options:
0, 1, 2 Available options:
dni, nie, passport, other