Orders
Create Order
Create Order with the given data. The order will be created with a draft
status.
POST
/
v1
/
orders
Headers
X-BUSINESS-API-KEY
string
requiredBody
application/json
amount
number
default: 0requiredThe total amount of the order
currency
string
default: sgdrequiredThe currency of the order
remark
string
requiredThe remark of the order
location_id
string
requiredThe location id of the order
customer_id
string
requiredThe customer id of the order
customer_pickup
boolean
default: truerequiredThe customer pickup of the order
channel
string
default: point_of_salerequiredThe channel of the order
business_user_id
string
requiredThe business user id of the order
discount_reason
string
requiredThe discount reason of the order
discount_amount
number
default: 0requiredThe discount amount of the order
version
string
default: 1.0requiredThe version of the order
Response
201 - application/json
id
string
order_display_number
integer
business_id
string
channel
string
version
string
customer_id
null
business_customer_id
null
customer
null
customer_pickup
boolean
currency
string
order_discount_name
null
status
string
remark
string
created_at
string
updated_at
string
closed_at
null
location_id
null
location
null
business_user_id
string
slot_date
null
slot_time
null
messages
null
products
any[]
charges
any[]
line_items
any[]
order_form
object
order_form_response
any[]
coupon
null
payment_status
null
fulfilment_status
string
line_items_total
integer
order_discount_amount
integer
line_item_discount_amount
integer
line_item_tax_amount
integer
additional_discount_amount
integer
total_discount_amount
integer
line_item_price
integer
shipping_amount
integer
total_coupon_amount
integer
amount
integer
subtotal
integer
Was this page helpful?