POST api/SalesOrder
Allows you to create SalesOrder
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
SalesOrder| Name | Description | Type | Additional information |
|---|---|---|---|
| SalesOrderId | integer |
None. |
|
| SalesOrderReference | string |
None. |
|
| SalesOrderBarcode | string |
None. |
|
| CustomerName | string |
None. |
|
| CustomerAddress | string |
None. |
|
| CustomerEmail | string |
None. |
|
| CustomerMobileNumber | string |
None. |
|
| CustomerLanguageCode | string |
None. |
|
| Remark | string |
None. |
|
| ResellerId | integer |
None. |
|
| VoucherCode | string |
None. |
|
| Status | string |
None. |
|
| Lines | Collection of SalesOrderLine |
None. |
Response Formats
application/json, text/json
Sample:
{
"salesOrderId": 200001,
"salesOrderReference": "NIT-12345678",
"salesOrderBarcode": null,
"status": null,
"lines": [
{
"productId": 121600,
"ticketCategoryId": 1,
"qty": 1,
"unitPrice": 40.0,
"barcodes": [
"7006196676564688564111"
],
"startDate": "2017-07-21T00:00:00+02:00"
},
{
"productId": 121562,
"ticketCategoryId": 1,
"timeslotId": 136626,
"qty": 1,
"unitPrice": 80.0,
"barcodes": [
"7082954252322264322317"
]
},
{
"productId": 125902,
"ticketCategoryId": 1,
"timeslotId": 134563,
"qty": 1,
"unitPrice": 33.0,
"barcodes": [
"4967964689364188"
]
},
{
"productId": 121564,
"ticketCategoryId": 1,
"timeslotId": 135229,
"qty": 1,
"unitPrice": 33.0,
"barcodes": [
"7069883907079748877532"
]
},
{
"productId": 121600,
"ticketCategoryId": 1,
"qty": 1,
"unitPrice": 33.0,
"barcodes": [
"7068571707869641265664"
],
"startDate": "2017-07-22T00:00:00+02:00"
},
{
"productId": 125902,
"ticketCategoryId": 2,
"timeslotId": 134564,
"qty": 1,
"unitPrice": 29.7,
"barcodes": [
"7069897307079748877647"
]
},
{
"productId": 121564,
"ticketCategoryId": 2,
"timeslotId": 135230,
"qty": 1,
"unitPrice": 29.7,
"barcodes": [
"7008293049463689069245"
]
},
{
"productId": 121600,
"ticketCategoryId": 2,
"qty": 1,
"unitPrice": 30.6,
"barcodes": [
"4962474720176078"
],
"startDate": "2017-07-23T00:00:00+02:00"
}
]
}
Not Successful Http Statuses
Bad Request (400) is returned when SalesOrderRequest is not valid or there is not enough capacity on selected timeslots