Unlock a set of tickets
Content
Resource URL
https://apps.ticketmatic.com/api/1/{accountname}/events/{id}/tickets/unlock
Description
The unlock call is limited to 100 tickets per call.
Examples
Unlock a set of tickets
Pass an array of ticket ids to unlock them
Request
1use Ticketmatic\Endpoints\Events;
2
3Events::unlocktickets($client, $id, array(
4 "ticketids" => array(
5 128942,
6 128943,
7 ),
8));
Response
This operation does not return a response. The status can be checked by looking at the HTTP status code.
Request
1import (
2 "github.com/ticketmatic/tm-go/ticketmatic"
3 "github.com/ticketmatic/tm-go/ticketmatic/events"
4)
5
6err := events.Unlocktickets(client, id, &ticketmatic.EventUnlockTickets{
7 Ticketids: []int64{
8 128942,
9 128943,
10 },
11})
Response
This operation does not return a response. The status can be checked by looking at the HTTP status code.
Request
1PUT /api/1/{accountname}/events/{id}/tickets/unlock HTTP/1.1
2Content-Type: application/json
3
4{
5 "ticketids": [ 128942, 128943 ]
6}
Response
This operation does not return a response. The status can be checked by looking at the HTTP status code.
Request body fields
Field | Description |
---|---|
ticketids int[] (required) | Array of ticketids to unlock. Example value:[ 128942, 128943 ] |
Type reference: EventUnlockTickets