Reserve order IDs

Content

Resource URL

https://apps.ticketmatic.com/api/1/{accountname}/orders/import/reserve

Description

Importing orders with specified IDs is only possible when those IDs fall in the reserved ID range.

Use this call to reserve a range of order IDs. Any unused ID lower than or equal to the specified ID will be reserved. New orders will receive IDs higher than the specified ID.

Example

Request

1use Ticketmatic\Endpoints\Orders;
2
3$result = Orders::reserve($client, array(
4    "id" => 100000,
5));

Response

1object(\Ticketmatic\Model\OrderIdReservation) (1) {
2  ["id"]=>
3  int(0)
4}
5

Request

1import (
2    "github.com/ticketmatic/tm-go/ticketmatic"
3    "github.com/ticketmatic/tm-go/ticketmatic/orders"
4)
5
6result, err := orders.Reserve(client, &ticketmatic.OrderIdReservation{
7    Id: 100000,
8})

Response

1result := &ticketmatic.OrderIdReservation{
2    Id: 100000,
3}

Request

1POST /api/1/{accountname}/orders/import/reserve HTTP/1.1
2Content-Type: application/json
3
4{
5    "id": 100000
6}

Response

1HTTP/1.1 200 OK
2Content-Type: application/json
3
4{
5    "id": 100000
6}

Request body fields

FieldDescription
id
int 
(required)

Maximum ID to reserve

Example value:100000

Type reference: OrderIdReservation

Result fields

FieldDescription
id
int

Maximum ID to reserve

Example value:100000

Type reference: OrderIdReservation