Lock a set of tickets

Content

Resource URL

https://apps.ticketmatic.com/api/1/{accountname}/events/{id}/tickets/lock

Description

The lock call is limited to 100 tickets per call.

Examples

Lock a set of tickets

Pass an array of ticket ids to lock them

Request

1use Ticketmatic\Endpoints\Events;
2
3Events::locktickets($client, $id, array(
4    "locktypeid" => 1,
5    "ticketids" => array(
6        128942,
7        128943,
8    ),
9));

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.Locktickets(client, id, &ticketmatic.EventLockTickets{
 7    Locktypeid: 1,
 8    Ticketids: []int64{
 9        128942,
10        128943,
11    },
12})

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/lock HTTP/1.1
2Content-Type: application/json
3
4{
5    "locktypeid": 1,
6    "ticketids": [ 128942, 128943 ]
7}

Response

This operation does not return a response. The status can be checked by looking at the HTTP status code.

Request body fields

FieldDescription
locktypeid
int 
(required)

Id of the locktype to use for the lock.

Example value:1
ticketids
int[] 
(required)

Array of ticketids to lock.

Example value:[ 128942, 128943 ]

Type reference: EventLockTickets