POST api/salesorder/create-reservation
Create reservation endpoint
Request Information
URI Parameters
None.
Body Parameters
SalesOrderRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ReservationId | string |
None. |
|
| Lines | Collection of SalesOrderRequestLine |
None. |
|
| SalesOrderReference | string |
None. |
|
| ExternalReference | string |
None. |
|
| Remark | string |
None. |
|
| ResellerId | integer |
None. |
|
| CustomerName | string |
None. |
|
| CustomerAddress | string |
None. |
|
| CustomerEmail | string |
None. |
|
| CustomerMobileNumber | string |
None. |
|
| CustomerLanguageCode | string |
None. |
|
| VoucherCode | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"lines": [
{
"productId": "121600",
"ticketCategoryId": 1,
"startDate": "2017-07-21T00:00:00+02:00",
"qty": 1,
"unitPrice": 40.0
},
{
"productId": "121562",
"ticketCategoryId": 1,
"timeslotId": 136626,
"qty": 1,
"unitPrice": 80.0
},
{
"productId": "P111",
"ticketCategoryId": 2,
"startDate": "2017-07-22T00:00:00+02:00",
"qty": 2,
"unitPrice": 30.0
},
{
"productId": "P111",
"ticketCategoryId": 2,
"startDate": "2017-07-23T00:00:00+02:00",
"qty": 1,
"unitPrice": 30.0
}
],
"salesOrderReference": "NIT-12345678"
}
Response Information
Resource Description
ReservationResult| Name | Description | Type | Additional information |
|---|---|---|---|
| ReservationId | string |
None. |
|
| ExpirationDate | date |
None. |
Response Formats
application/json, text/json
Sample:
{
"reservationId": "sample string 1",
"expirationDate": "2025-10-02T20:46:33.0457957+02:00"
}