Documentation
Difficulty level:
This section only applies if the module CRM is active.
API - Order - GET order/{id}
GET order/{id}
Used for
getting the information of a specific order.
Authentication
Requires authentication.
Parameters
Parameter | Description | Required | Example |
---|---|---|---|
id | ID of the order | Yes | 13 |
Expansion
Type | Description |
---|---|
details | the detail lines for invoice |
Response codes
- 200 OK
Example
Getting the information of invoice 13.
GET api/rest/order/13?expand=details
Response: { "order_id": 13, "order_number": "13", "date": "2021-04-11", "status": "bibliotheek", "status_code": "11", "booking_id": null, "customer": "", "price": "0", "currency": "", "details": [{ "id": "15", "ord_id": "3", "block_id": "5", "prio": "0", "inv_id": "447", "prod_id": "0", "unit_id": "0", "optional": "0", "detail": "total", "desc": "bonnetje 1", "memo": "", "from": "0", "fromtime": "0", "til": "0", "tiltime": "0", "months": "0", "nights": "0", "participants": "0", "number_of_places": "1", "price": "222", "currency": "EUR", "discount": "", "discount_total": "0", "sub": "222", "vat_id": "0", "vat_desc": "", "vat": "0", "vat_exclusive": "222", "prt_id": "0", "prt_desc": "", "obj_id": "0", "obj_desc": "", "fee_included": "0", "account_code": "1000", "account_sign": "DB", "block_desc": "Ticket 11", "block_memo": "Memo text", "block_status": "te leveren", "block_status_code": "22", "block_team_id": "4" }] }