Create B2B Order
POST
/api/v2/courier/pricing/b2b/create_orderB2B orders allow you to create a bulk of items with some special requirements that fit with your business.
Example: Specific expiry date, date range, batch/lot, condition goods.
Rate limit: 1rps/IP
Request
B2B Customer Code, refer to customer list (required for B2B order, you can leave blank for inventory transfer)
Default delivery address of customer, does not work with inventory transfer
Require for transfer order (TO). You can skip customer information.
Require if default address is false
Require if default address is false
Require if default address is false
Require if default address is false
Require if default address is false
Require if default address is false
Require if default address is false
metric
Fixed b2b value
Require for Transfer Order to Boxme Warehouse
Delivery service code returnd from Get Shipping Option API
{
"ship_from": {
"country": "VN",
"pickup_id": 409223
},
"ship_to": {
"address": "18 Tam Trinh",
"subdistrict": 8980,
"contact_name": "Thịnh NV",
"country": "VN",
"district": 250,
"phone": "84032999292",
"province": 1,
"zipcode": ""
},
"shipments": {
"delivery_note": "",
"parcels": [
{
"items": [
{
"quantity": 1,
"seller_sku": "TEST-0004"
},
{
"quantity": 1,
"seller_sku": "TEST-0005"
}
]
}
]
},
"config": {
"insurance": false,
"currency": "VND",
"unit_metric": "metric",
"sort_mode": "best_price",
"auto_approve": true,
"order_type": "b2b",
"include_distance_service": false
},
"payment": {
"cod_amount": 24000
},
"referral": {
"order_number": "SO092921232",
"platform": "shopee",
"source": "Primer RMS"
},
"fulfillment_vas": {
"fulfill_now": false,
"priority_fulfill": false
}
}
Request samples
Responses
{
"data": {
"label_url": "https://s.boxme.asia/api/v1/orders/awb-label/MzEwZWNmYTktYWY1Zi00OTM2LTk4M2EtYmE2MGM5YmYxN2Ez",
"tracking_number": "BM65221104356",
"courier_name": "Boxme Express",
"service_code": "BM_DBS",
"service_name": "Self-Delivery",
"cod_value": 24000
},
"error": false,
"error_code": "",
"messages": "Create order successfully.",
"request_id": 1703485822,
"total": 0
}