Order Submit

POST - Submitting order to ASL System

POST - https://portal.asl-asia.cloud:4000/api/order/submit

Body

Field
Type
Optional

order_id

String

description

String

note

String

service_type

String

Optional. Required service enabled from ASL Admin

tracking_no

String

Optional

is_cod

Boolean

payment_amount

Float (e.g 200.5)

Optional

payment_currency

3-letter (e.g HKD)

Optional

buyer

Object

-- name

String

-- address

String

(Max 35 character)

-- address2

String

Optional

-- zip

String

-- country

2-digit Country Code

-- state

String

-- phone

String

-- city

String

-- email

String

item_lines

Array

-- description

String

Required if auto-fulfilled

-- sku

String

-- qty

Integer

-- price

Object

Required if auto-fulfilled

---- currency

3 Digit Currency Code

---- amount

Integer

dimension

Object

Optional

-- weight

UnitValue Object

-- height

UnitValue Object

-- width

UnitValue Object

-- length

UnitValue Object

Example JSON

Error

Code
Reason

ORDER_ALREADY_EXISTS

order_id already used

BODY_MISSING_FIELDS

The required fields from body is missing

BUYER_MISSING_FIELDS

The required fields from body.buyer is missing

COUNTRY_NOT_CORRECT

body.buyer.country is not correct

ITEM_LINES_NOT_CORRECT

item_lines is missing correct fields

Last updated