- Overview
- Getting Started
- Authentication
- Q&A
- Common Errors
- API Call Flow
- Instant Order Flow
- Boxme's RTO and RPO
- Changelog
- API References
- Location
- Pickup
- Product
- Shipment (ASN)
- Customer
- Orders
- Order API Overview
- Get Shipping Option (Fulfillment)
- Get Shipping Option (Dropship)
- Create B2C Order
- Create Delivery Order
- Create B2B Order
- Update Document
- Request Cancel Delivery Order
- Cancel Order
- Get Order Detail
- Get Order List
- Get Courier List
- Get Courier Service
- Get Packed Items
- Order Pack
- Get B2B Pickup TimeSlot
- Returns
- Finance (Dev)
- Location
- Webhooks
Create Inbound Shipment (ASN)
POST
https://s.boxme.asia/api/v2/sellers/shipments/
Last modified:2024-08-05 07:00:59
Request
Header Params
Authorization
string
required
Example:
Token {{API_TOKEN}}
Content-Type
string
optional
Example:
application/json
Body Params application/json
pickup_id
string
required
po_number
string
required
package_option
string
optional
Default:
single
Examples:
singlemulti
vas
object
required
inspection
boolean
required
Default:
false
priority_inbound
boolean
required
Default:
false
unloading
boolean
required
Default:
false
reject_damaged_goods
boolean
required
Default:
false
products
array [object {6}]
required
seller_sku
string
required
quantity_per_box
integer
optional
quantity_of_box
integer
optional
quantity
integer
required
line_no
string
optional
auto_merge
boolean
optional
Default:
false
inspection_note
string
optional
note
string
required
estimate_arrived_time
integer
required
documents
array[string]
optional
pickup_service
boolean
optional
Default:
false
pickup_from
object
optional
customer_code
string
optional
default_address
boolean
optional
Example
{
"pickup_id": 7347389,
"po_number": "PO000001",
"package_option": "single",
"vas": {
"inspection": true,
"priority_inbound": false,
"unloading": false,
"reject_damaged_goods": true
},
"products": [
{
"seller_sku": "DLGLASS0001",
"quantity_per_box": 12,
"quantity": 1200,
"line_no": "10000",
"auto_merge": false
},
{
"seller_sku": "TEST-0002",
"quantity_per_box": 6,
"quantity": 60,
"line_no": "10000",
"auto_merge": false
}
],
"inspection_note": "",
"note": "Ghi chú",
"estimate_arrived_time": "21/12/2023",
"documents": [
"https://storage.googleapis.com/boxme/warehouse/2023/12/hfEzUM_202312.jpg"
]
}
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 POST 'https://s.boxme.asia/api/v2/sellers/shipments/' \
--header 'Authorization: Token {{API_TOKEN}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"pickup_id":7347389,
"po_number": "PO000001",
"package_option": "single",
"vas": {
"inspection": true,
"priority_inbound": false,
"unloading": false,
"reject_damaged_goods": true
},
"products": [
{
"seller_sku": "DLGLASS0001",
"quantity_per_box": 12,
"quantity": 1200,
"line_no": "10000",
"auto_merge":false
},
{
"seller_sku": "TEST-0002",
"quantity_per_box": 6,
"quantity": 60,
"line_no": "10000",
"auto_merge":false
}
],
"inspection_note": "",
"note": "Ghi chú",
"estimate_arrived_time": "21/12/2023",
"documents": [
"https://storage.googleapis.com/boxme/warehouse/2023/12/hfEzUM_202312.jpg"
]
}'
Responses
🟢200Success
application/json
Body
data
object
required
shipment_code
string
required
po_number
string
required
created_time
integer
required
error
boolean
required
error_code
string
required
messages
string
required
request_id
string
required
Example
{
"data": {
"shipment_code": "SM-VN-331529-16537311",
"po_number": "ASN02324221",
"created_time": 1714637312
},
"error": false,
"error_code": "",
"messages": "",
"request_id": "663349ff0bfeb065f4150d12"
}
🟠400Bad Request
Modified at 2024-08-05 07:00:59