Add Ticket Buyer IDs
Rate limits
This endpoint does not belong to the priority lane. Do not use it within your ticket sales flow.
Adds one or more ticket buyer IDs to the list of allowed ticket buyers for your company account.
Each ticket buyer ID must be a valid UUID, a universally unique identifier in standard format (e.g. d2e8e3d1-4f3c-4f50-8c7d-52e654bb2cd1).
Note
You need to authenticate with your company admin key for this API call.
- Text
- PHP
- C#
- Java
- Python
- Ruby
- Javascript
- Go
POST https://api-{region}.seatsio.net/ticket-buyers
$response = $seatsioClient->ticketBuyers->add([
"fbbbc8d7-1067-432c-b71f-abefe29b3be9",
"6ad35155-8b8c-4a6b-ae43-57bf2411dcd9",
"09de834d-02ef-41f0-947f-47c1c1a906d6"
]);
var ticketBuyerId1 = Guid.NewGuid();
var ticketBuyerId2 = Guid.NewGuid();
var ticketBuyerId3 = Guid.NewGuid();
var response = await Client.TicketBuyers.AddAsync(new[] {ticketBuyerId1, ticketBuyerId2, ticketBuyerId3});
UUID ticketBuyerId1 = UUID.randomUUID();
UUID ticketBuyerId2 = UUID.randomUUID();
UUID ticketBuyerId3 = UUID.randomUUID();
AddTicketBuyerIdsResponse response = client.ticketBuyers.add(ticketBuyerId1, ticketBuyerId2, ticketBuyerId3);
ticket_buyer_id1 = uuid4()
ticket_buyer_id2 = uuid4()
ticket_buyer_id3 = uuid4()
client.ticket_buyers.add([ticket_buyer_id1, ticket_buyer_id2, ticket_buyer_id3])
ticketBuyerId1 = SecureRandom.uuid
ticketBuyerId2 = SecureRandom.uuid
ticketBuyerId3 = SecureRandom.uuid
result = client.ticket_buyers.add([ticketBuyerId1, ticketBuyerId2, ticketBuyerId3])
const response = await client.ticketBuyers.add([
"fbbbc8d7-1067-432c-b71f-abefe29b3be9",
"6ad35155-8b8c-4a6b-ae43-57bf2411dcd9",
"09de834d-02ef-41f0-947f-47c1c1a906d6"
])
ticketBuyerId1 := uuid.New()
ticketBuyerId2 := uuid.New()
ticketBuyerId3 := uuid.New()
ticketBuyerIds := []uuid.UUID{ticketBuyerId1, ticketBuyerId2, ticketBuyerId3}
result, err := client.TicketBuyers.Add(context, &ticketbuyers.TicketBuyerParams{Ids: ticketBuyerIds})
Request
{
"ids": [
"fbbbc8d7-1067-432c-b71f-abefe29b3be9",
"6ad35155-8b8c-4a6b-ae43-57bf2411dcd9",
"09de834d-02ef-41f0-947f-47c1c1a906d6"
]
}
The request body should be a JSON object containing a single property ids.
ids: (array): the ticket buyer IDs you want to add. Each ID must be a valid UUID. You can add up to 1000 IDs per request. If you send more than 1000, the request will be rejected.
Response
{
"added": [ // The IDs that were successfully added
"fbbbc8d7-1067-432c-b71f-abefe29b3be9",
"6ad35155-8b8c-4a6b-ae43-57bf2411dcd9",
"09de834d-02ef-41f0-947f-47c1c1a906d6"
],
"alreadyPresent": [ // The IDs that were already in the list and were not added again
"d2e8e3d1-4f3c-4f50-8c7d-52e654bb2cd1"
]
}