APIAddToOrder
This method takes order items in the payload and returns order information or nothing
/api/plain/?type=APIAddToOrder&[payload]&HashString=[hashstring]
URL Parameters
Payload Parameters
Field | Type | Description |
---|
Reference | Varchar | Order reference |
OrderItems | array() | |
- ProductID | Integer | ID of the product you are booking |
- ProductClassName | String | This is the "type" of the product that you are booking. |
- EventID | Integer | ID of the event that will be booked |
- Quantity | Integer | How many participants |
Success 200
Field | Type | Description |
---|
Reference | String | Reference of the order |
TotalCost | Double | Total amount of the order without the Tax |
Errors | Array() | |
- Success-Response:
HTTP/1.1 200 OK
{
"Reference": "ABC123",
"TotalCost": "100.00",
"Errors": []
}
Error 4xx
Field | Type | Description |
---|
Errors | array() | |
- Code | Int | Number of error |
- Error | String | Error message |
- Error-Response:
HTTP/1.1 200 OK
{
"Reference": ""
"Errors": [
{"Code":"403", "Error":"Not found order"},
{"Code":"104", "Error":"Ooops, the event slots are not available"},
{"Code":"107", "Error":"Resource is unavailable at this time, please select another time"},
{"Code":"111", "Error":"Please complete all required product options to complete the booking."},
{"Code":"115", "Error":"Please select a quantity for the main product."},
{"Code":"304", "Error":"Quantity of 1 is allowed in the basket for this product"},
]
}
>