Order Details
Designing
GET
/orders/{order_id}
Request
Authorization
Add parameter in header
X-Api-Key
Example:
X-Api-Key: ********************
Path Params
order_id
string
required
Header Params
X-Merchant-Id
string
required
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api-stg.atlas.kitchen/orders/' \
--header 'X-Merchant-Id;'
Responses
🟢200Success
application/json
Body
id
integer
required
user_id
integer
required
channel_id
integer
required
outlet_id
integer
required
brand_id
integer | null
required
identifier
string | null
required
state
string
required
fulfilment_type
enum<string>
required
Allowed values:
dine_inpickupdelivery
serving_date
string <date>
required
YYYY-MM-DD
timeslot_start
integer
required
timeslot_end
integer
required
timeslot_type
enum<string>
required
Allowed value:
asap
timeslot_range
string
read-onlyrequired
order_items
array[object (OrderItemResponse) {12}]
required
id
integer
required
item_id
integer
required
name
string
required
quantity
integer
required
>= 1
price_cents
integer
required
currency
string
required
discount
integer
required
Default:
0
notes
string | null
required
calculated_subtotal
integer | null
required
per_unit_quantity
integer | null
required
unit_label
string | null
required
sub_items
array [object {11}]
required
contact_name
string | null
required
contact_email
string | null
required
contact_number
string | null
required
address_line1
string | null
required
address_line2
string | null
required
external_order_id
string | null
required
external_order_short_code
string | null
required
call_number
string
required
postal_code
string | null
required
address_latitude
number | null
required
address_longitude
number | null
required
is_cutlery_required
boolean
required
Default:
false
is_contactless
boolean
required
Default:
false
notes
string | null
required
is_gift
boolean
required
Default:
false
recipient_name
string | null
required
recipient_contact_number
string | null
required
gift_message
string | null
required
is_paid
boolean
required
Default:
false
promo_code
string | null
required
created_at
integer
required
unix time
updated_at
integer
required
unix time
cancelled_at
integer | null
required
unix time
completed_at
integer | null
required
unix time
donation_amount
integer
required
>= 0
Default:
0
confirmation_custom_message
string | null
required
Example
{
"id": 0,
"user_id": 0,
"channel_id": 0,
"outlet_id": 0,
"brand_id": 0,
"identifier": "string",
"state": "string",
"fulfilment_type": "dine_in",
"serving_date": "2019-08-24",
"timeslot_start": 0,
"timeslot_end": 0,
"timeslot_type": "asap",
"timeslot_range": "string",
"order_items": [
{
"id": 0,
"item_id": 0,
"name": "string",
"quantity": 1,
"price_cents": 0,
"currency": "string",
"discount": 0,
"notes": "string",
"calculated_subtotal": 0,
"per_unit_quantity": 0,
"unit_label": "string",
"sub_items": [
{
"id": 0,
"item_id": 0,
"name": "string",
"quantity": 1,
"price_cents": 0,
"currency": "string",
"discount": 0,
"notes": "string",
"calculated_subtotal": 0,
"per_unit_quantity": 0,
"unit_label": "string"
}
]
}
],
"contact_name": "string",
"contact_email": "string",
"contact_number": "string",
"address_line1": "string",
"address_line2": "string",
"external_order_id": "string",
"external_order_short_code": "string",
"call_number": "string",
"postal_code": "string",
"address_latitude": 0,
"address_longitude": 0,
"is_cutlery_required": false,
"is_contactless": false,
"notes": "string",
"is_gift": false,
"recipient_name": "string",
"recipient_contact_number": "string",
"gift_message": "string",
"is_paid": false,
"promo_code": "string",
"created_at": 0,
"updated_at": 0,
"cancelled_at": 0,
"completed_at": 0,
"donation_amount": 0,
"confirmation_custom_message": "string"
}
🟠404Not Found
🔴500Server Error
🟠401Unauthorized
Modified at 2024-10-02 05:23:08