Batch update tickets for an event
Content
Resource URL
https://apps.ticketmatic.com/api/1/{accountname}/events/{id}/tickets/batch
Description
Update the contents of one or more custom fields for multiple tickets in one call. Batch update is limited to 5000 tickets per call.
Warning: Do not change the barcode of a ticket that has been delivered: existing printed tickets will no longer work.
Examples
Updating custom fields on tickets
Pass any number of custom fields to update them
Request
1use Ticketmatic\Endpoints\Events;
2
3Events::batchupdatetickets($client, $id, array(
4 array(
5 "id" => 128942,
6 "c_special" => true,
7 ),
8));
Response
This operation does not return a response. The status can be checked by looking at the HTTP status code.
Updating properties on tickets
Request
1use Ticketmatic\Endpoints\Events;
2
3Events::batchupdatetickets($client, $id, array(
4 array(
5 "id" => 173948,
6 "properties" => array(
7 "key1" => "value1",
8 ),
9 ),
10));
Response
This operation does not return a response. The status can be checked by looking at the HTTP status code.
Changing the barcode of a ticket
Request
1use Ticketmatic\Endpoints\Events;
2
3Events::batchupdatetickets($client, $id, array(
4 array(
5 "id" => 323843,
6 "barcode" => "5483685635465",
7 ),
8));
Response
This operation does not return a response. The status can be checked by looking at the HTTP status code.
Request body fields
This call expects an array of objects in the request body.
Field | Description |
---|---|
id int (required) | Ticket ID Example value:128942 |
barcode string | Ticket barcode Example value:"418981919819" |
properties map<string, string> | String to string key-value mapping of properties Example value:{ "key1": "value1", "key2": "value2" } |
Type reference: EventTicket[]