Modify an existing waiting list request

Content

Resource URL

https://apps.ticketmatic.com/api/1/{accountname}/sales/waitinglistrequests/{id}

Example

Request

 1use Ticketmatic\Endpoints\Sales\Waitinglistrequests;
 2
 3$result = Waitinglistrequests::update($client, $id, array(
 4    "orderid" => 1,
 5    "contactid" => 1,
 6    "itemsstatus" => 29101,
 7    "requeststatus" => 29201,
 8    "saleschannelid" => 1,
 9    "waitinglistrequestitems" => array(
10        array(
11            "eventid" => 12345,
12            "tickets" => array(
13                array(
14                    "tickettypepriceid" => 1,
15                ),
16                array(
17                    "tickettypepriceid" => 1,
18                ),
19                array(
20                    "tickettypepriceid" => 2,
21                ),
22                array(
23                    "tickettypepriceid" => 3,
24                ),
25            ),
26        ),
27    ),
28));

Response

 1object(\Ticketmatic\Model\WaitingListRequest) (11) {
 2  ["id"]=>
 3  int(0)
 4  ["orderid"]=>
 5  int(0)
 6  ["contactid"]=>
 7  int(0)
 8  ["itemsstatus"]=>
 9  int(0)
10  ["requeststatus"]=>
11  int(0)
12  ["saleschannelid"]=>
13  int(0)
14  ["sortorder"]=>
15  int(0)
16  ["waitinglistrequestitems"]=>
17  array(1) {
18    [0]=>
19    object(\Ticketmatic\Model\WaitingListRequestItem) (2) {
20      ["eventid"]=>
21      int(0)
22      ["tickets"]=>
23      array(4) {
24        [0]=>
25        object(\Ticketmatic\Model\WaitingListRequestItemTicket) (1) {
26          ["tickettypepriceid"]=>
27          int(0)
28        }
29        [1]=>
30        object(\Ticketmatic\Model\WaitingListRequestItemTicket) (1) {
31          ["tickettypepriceid"]=>
32          int(0)
33        }
34        [2]=>
35        object(\Ticketmatic\Model\WaitingListRequestItemTicket) (1) {
36          ["tickettypepriceid"]=>
37          int(0)
38        }
39        [3]=>
40        object(\Ticketmatic\Model\WaitingListRequestItemTicket) (1) {
41          ["tickettypepriceid"]=>
42          int(0)
43        }
44      }
45    }
46  }
47  ["isarchived"]=>
48  bool(false)
49  ["createdts"]=>
50  object(\DateTime) (3) {
51    ["date"]=>
52    string(26) "2014-09-26 15:24:36.000000"
53    ["timezone_type"]=>
54    int(3)
55    ["timezone"]=>
56    string(3) "UTC"
57  }
58  ["lastupdatets"]=>
59  object(\DateTime) (3) {
60    ["date"]=>
61    string(26) "2014-09-26 15:24:36.000000"
62    ["timezone_type"]=>
63    int(3)
64    ["timezone"]=>
65    string(3) "UTC"
66  }
67}

Request body fields

FieldDescription
orderid
int 
(required)

The id of the order the request is converted to

Example value:1
contactid
int 
(required)

Contact id

Example value:1
itemsstatus
int 
(required)

Show the status of the related items, 29101 = no information provided, 29102 = partial information provided and 29103 = full information provided

Example value:29101
requeststatus
int 
(required)

Show the status of the request, 29201 = requested, 29202 = processed, 29203 = conversion in progress

Example value:29201
saleschannelid
int 
(required)

The id of the saleschannel used to make the request

Example value:1
waitinglistrequestitems

The request items per event

Example value:[ { "eventid": 12345, "tickets": [ { "tickettypepriceid": 1 }, { "tickettypepriceid": 1 }, { "tickettypepriceid": 2 }, { "tickettypepriceid": 3 } ] } ]

Type reference: WaitingListRequest

Result fields

FieldDescription
id
int

Unique ID

Example value:123
orderid
int

The id of the order the request is converted to

Example value:1
contactid
int

Contact id

Example value:1
itemsstatus
int

Show the status of the related items, 29101 = no information provided, 29102 = partial information provided and 29103 = full information provided

Example value:29101
requeststatus
int

Show the status of the request, 29201 = requested, 29202 = processed, 29203 = conversion in progress

Example value:29201
saleschannelid
int

The id of the saleschannel used to make the request

Example value:1
sortorder
int

Randomly generated identifier on create. Provides random but consistent ordering of the request (for casting lots)

Example value:1324
waitinglistrequestitems

The request items per event

Example value:[ { "eventid": 12345, "tickets": [ { "tickettypepriceid": 1 }, { "tickettypepriceid": 1 }, { "tickettypepriceid": 2 }, { "tickettypepriceid": 3 } ] } ]
isarchived
bool

Whether or not this item is archived

createdts
timestamp

Created timestamp

Example value:"2014-09-26 15:24:36"
lastupdatets
timestamp

Last updated timestamp

Example value:"2014-09-26 15:24:36"

Type reference: WaitingListRequest