Get a single 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::get($client, $id);

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

1import (
2    "github.com/ticketmatic/tm-go/ticketmatic"
3    "github.com/ticketmatic/tm-go/ticketmatic/sales/waitinglistrequests"
4)
5
6result, err := waitinglistrequests.Get(client, id)

Response

 1result := &ticketmatic.WaitingListRequest{
 2    Id: 123,
 3    Orderid: 1,
 4    Contactid: 1,
 5    Itemsstatus: 29101,
 6    Requeststatus: 29201,
 7    Saleschannelid: 1,
 8    Sortorder: 1324,
 9    Waitinglistrequestitems: []*ticketmatic.WaitingListRequestItem{
10        &ticketmatic.WaitingListRequestItem{
11            Eventid: 12345,
12            Tickets: []*ticketmatic.WaitingListRequestItemTicket{
13                &ticketmatic.WaitingListRequestItemTicket{
14                    Tickettypepriceid: 1,
15                },
16                &ticketmatic.WaitingListRequestItemTicket{
17                    Tickettypepriceid: 1,
18                },
19                &ticketmatic.WaitingListRequestItemTicket{
20                    Tickettypepriceid: 2,
21                },
22                &ticketmatic.WaitingListRequestItemTicket{
23                    Tickettypepriceid: 3,
24                },
25            },
26        },
27    },
28    Isarchived: false,
29    Createdts: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
30    Lastupdatets: ticketmatic.NewTime(ticketmatic.MustParseTime("2014-09-26 15:24:36")),
31}

Request

1GET /api/1/{accountname}/sales/waitinglistrequests/{id} HTTP/1.1

Response

 1HTTP/1.1 200 OK
 2Content-Type: application/json
 3
 4{
 5    "id": 123,
 6    "orderid": 1,
 7    "contactid": 1,
 8    "itemsstatus": 29101,
 9    "requeststatus": 29201,
10    "saleschannelid": 1,
11    "sortorder": 1324,
12    "waitinglistrequestitems": [
13        {
14            "eventid": 12345,
15            "tickets": [
16                {
17                    "tickettypepriceid": 1
18                },
19                {
20                    "tickettypepriceid": 1
21                },
22                {
23                    "tickettypepriceid": 2
24                },
25                {
26                    "tickettypepriceid": 3
27                }
28            ]
29        }
30    ],
31    "isarchived": false,
32    "createdts": "2014-09-26 15:24:36",
33    "lastupdatets": "2014-09-26 15:24:36"
34}

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