Outbound Orders (Dropship / Self-Pickup)
This page explains how to create dropship orders and self-pickup / FBA outbound orders through the API, query status and tracking, and cancel orders.
We recommend that e-commerce platforms and ERPs integrate through /open-api/v1/oms/orders: it is idempotent on the platform order number, and automatically submits the order and locks inventory after creation.
Endpoints at a Glance
| Method | Path | Purpose | scope |
|---|---|---|---|
| POST | /open-api/v1/oms/orders | Create an order (auto-submitted) | oms:write |
| GET | /open-api/v1/oms/orders/{externalOrderNo} | Get order status and tracking | oms:read |
| POST | /open-api/v1/oms/orders/{externalOrderNo}/cancel | Cancel an order | oms:write |
| GET | /open-api/v1/oms/orders | Paginated order list | oms:read |
| GET | /open-api/v1/outbound/orders | Paginated outbound orders (generic view) | outbound:read |
| GET | /open-api/v1/outbound/orders/{id} | Outbound order details (with lines) | outbound:read |
| GET | /open-api/v1/outbound/orders/{id}/items | Outbound order lines | outbound:read |
| POST | /open-api/v1/outbound/orders | Create an outbound order draft | outbound:write |
Order Status
Order response fields: wmsOrderId, wmsOrderNo (system outbound order number), externalOrderNo, status (main status), exprStatus (detailed dropship status), trackingNo (latest tracking number), carrier, trackEvents (shipment tracking; returned only by the single-order query, newest first; each entry contains trackingNo, carrierCode, status, event, eventTime).
status (main status) | Meaning |
|---|---|
| 0 | Draft |
| 1 | Submitted |
| 2 | Picking |
| 3 | Ready to Ship |
| 4 | Shipped |
| 5 | Cancelled |
exprStatus (detailed dropship status) | Meaning |
|---|---|
| 0 | Draft |
| 3 | Checking (after an API order is created it first enters this status; the system validates inventory and so on, then automatically changes it to 10) |
| 5 | Validation failed (shown as Exception in OMS) |
| 10 | Submitted |
| 20 | Reviewed |
| 30 | Picking / picking complete |
| 35 | To Pick Up |
| 40 | Picked Up (shipped) |
| 50 | Recall / return |
| 60 | Intercepted |
| 90 | Cancelled |
Create an Order
POST /open-api/v1/oms/orders
outboundType= 20 (default) is a dropship order; = 10 is self-pickup / truck delivery / FBA.- The customer identity is taken from the API Key; customer fields in the request body are ignored.
- If
labelUrlorlabelFileis provided, the order is created as a self-supplied label (Self-Label) order (you provide the shipping label yourself); otherwise the warehouse generates the label.
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
externalOrderNo | string | Yes | Platform order number; the idempotency key |
outboundType | int | No | 20 dropship (default) / 10 self-pickup / FBA |
warehouseId | long | One of the two | Shipping warehouse ID (takes precedence) |
warehouseCode | string | One of the two | Shipping warehouse code |
carrier | string | No | Carrier |
trackingNo | string | Recommended for self-supplied labels | Tracking number of the self-supplied label |
labelUrl | string | No | Self-supplied label URL; must be http(s), up to 500 characters; use either this or labelFile |
labelFile | string | No | Self-supplied label file in base64 (≤5 MB after decoding; PDF / PNG / JPG supported; images are automatically converted to a 4×6 PDF; a data:...;base64, prefix is allowed); use either this or labelUrl |
channelCode | string | No | Channel code: a platform channel value or a system label-channel code. If not recognized, the order shows "Channel to confirm" (渠道待确认) and order creation is not affected |
sendNo | string | Required for self-pickup | Shipment number / FBA No., 1 to 100 characters, no Chinese characters, unique under your account |
carTmsType | int | Required for self-pickup | Delivery method: 1 self-pickup / 2 truck delivery / 3 express |
isFba | int | No | For self-pickup, whether it is an FBA transfer: 0 no / 1 yes |
recipient | object | Required for dropship | Recipient information |
recipient.name | string | Recipient | |
recipient.company | string | Company | |
recipient.phone | string | Phone | |
recipient.email | string | ||
recipient.country | string | Two-letter country code, such as US | |
recipient.state | string | Two-letter state / province code, such as CA | |
recipient.city | string | City | |
recipient.address1 / address2 | string | Address line 1 / 2 | |
recipient.zip | string | Postal code | |
items | array | Yes | Order lines |
items[].skuCode | string | Yes | A SKU code under your account |
items[].qty | decimal | Yes | Quantity, >0 |
items[].remark | string | No | Line remark |
Request Example: Dropship (Warehouse-Generated Label)
curl -X POST https://api.vmwms.com/open-api/v1/oms/orders \
-H "x-api-key: <YOUR_API_KEY>" -H "x-api-secret: <YOUR_API_SECRET>" \
-H "Content-Type: application/json" \
-d '{
"externalOrderNo": "PO-TEST-0001",
"warehouseCode": "<WH_CODE>",
"channelCode": "<CHANNEL_CODE>",
"recipient": { "name": "John Doe", "phone": "5551234567", "country": "US", "state": "CA",
"city": "Irvine", "address1": "1 Main St", "zip": "92618" },
"items": [ { "skuCode": "SKU-A001", "qty": 2 } ]
}'Request Example: Dropship (Self-Supplied Label)
curl -X POST https://api.vmwms.com/open-api/v1/oms/orders \
-H "x-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>" -H "Content-Type: application/json" \
-d '{
"externalOrderNo": "PO-TEST-0002",
"warehouseCode": "<WH_CODE>",
"carrier": "UPS",
"trackingNo": "1Z999AA10123456784",
"labelUrl": "https://files.example.com/labels/PO-TEST-0002.pdf",
"recipient": { "name": "Jane Roe", "country": "US", "state": "NJ", "city": "Edison",
"address1": "100 Test Ave", "zip": "08817" },
"items": [ { "skuCode": "SKU-A001", "qty": 1 } ]
}'Request Example: Self-Pickup / FBA
curl -X POST https://api.vmwms.com/open-api/v1/oms/orders \
-H "x-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>" -H "Content-Type: application/json" \
-d '{
"externalOrderNo": "PU-TEST-0001",
"outboundType": 10,
"warehouseCode": "<WH_CODE>",
"sendNo": "PU-TEST-0001",
"carTmsType": 1,
"isFba": 0,
"items": [ { "skuCode": "SKU-A001", "qty": 100 } ]
}'Response Example
{
"code": 200,
"msg": "下单成功",
"data": {
"wmsOrderId": "1800000000000000031",
"wmsOrderNo": "<WMS_OUTBOUND_NO>",
"externalOrderNo": "PO-TEST-0001",
"status": 1,
"exprStatus": 3,
"trackingNo": null,
"carrier": null,
"trackEvents": null
}
}The msg above, 下单成功, means "Order placed". If a non-canceled order with the same number already exists, the existing order is returned with msg "Order already exists (idempotent response)" (订单已存在(幂等返回)).
Common Errors
| Error message | Cause and fix |
|---|---|
| externalOrderNo (e-commerce platform order number) cannot be empty (externalOrderNo(电商平台订单号)不能为空) | Platform order number not provided |
| warehouseId or warehouseCode cannot be empty and must be valid (warehouseId 或 warehouseCode 不能为空且需有效) | Warehouse not provided, or the code is wrong |
| Data does not exist (code 404) (数据不存在) | The warehouse is not one currently available to you |
| Line skuCode cannot be empty / Line quantity must be greater than 0: SKU-A001 (明细 skuCode 不能为空 / 明细数量必须大于0: SKU-A001) | A line is missing its SKU or its quantity is ≤0 |
| SKU not authorized or does not exist: SKU-A001 (无权使用或不存在的SKU: SKU-A001) | The SKU has not been created or is not under your account |
| Order: PO-TEST-0001 has no shipping SKU information! (订单: PO-TEST-0001 没有发货SKU信息!) | items is empty |
| Order: PO-TEST-0001 labelUrl and labelFile are mutually exclusive! (订单: PO-TEST-0001 的 labelUrl 与 labelFile 只能二选一!) | Both were provided |
| Order: PO-TEST-0001 labelUrl must be an http(s) address! / length cannot exceed 500! (订单: PO-TEST-0001 的 labelUrl 必须是 http(s) 地址! / 长度不能超过 500!) | Invalid label URL |
| Order: PO-TEST-0001 labelFile is not valid base64! / is empty! / exceeds 5MB! / only PDF / PNG / JPG supported! / is an empty PDF! / image not recognized! (订单: PO-TEST-0001 的 labelFile 不是有效的 base64! / 为空! / 超过 5MB! / 只支持 PDF / PNG / JPG! / 是空 PDF! / 图片无法识别!) | Invalid label file |
| FBA transfer requires the FBA No. (FBA转运需要填写FBA No.) | isFba=1 but the shipment number is missing |
| Shipment number / pickup order number / FBA number cannot be empty / length must be 1 to 100 (发货编号/提货单号/Fba编号 不能为空 / 长度需为 1~100) | sendNo is missing or too long on a self-pickup order |
| Shipment number cannot contain Chinese characters (发货编号不能包含汉字字符) | sendNo contains Chinese characters |
| Delivery method cannot be empty (派送方式 不能为空) | carTmsType not provided on a self-pickup order |
| Shipment number PU-TEST-0001 already exists! (发货编号 PU-TEST-0001 已存在!) | Duplicate sendNo |
How insufficient inventory shows up
After a dropship order is created it first enters Checking (exprStatus=3), and the system then validates inventory and locks it. If validation fails, for example because of insufficient inventory, the order becomes Validation failed (exprStatus=5; it appears on the Exception (异常) tab of the dropship list in OMS). After placing an order, query its status once to confirm it has reached 10 Submitted.
Get Order Status and Tracking
GET /open-api/v1/oms/orders/{externalOrderNo}
If the same platform order number has multiple orders (for example, re-placed after a cancellation), the latest one is returned. If none is found, code 500 is returned with "Order does not exist or access denied: PO-TEST-0001" (订单不存在或无权访问: PO-TEST-0001).
curl https://api.vmwms.com/open-api/v1/oms/orders/PO-TEST-0001 -H "x-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>"{
"code": 200,
"msg": "操作成功",
"data": {
"wmsOrderId": "1800000000000000031",
"wmsOrderNo": "<WMS_OUTBOUND_NO>",
"externalOrderNo": "PO-TEST-0001",
"status": 4,
"exprStatus": 40,
"trackingNo": "1Z999AA10123456784",
"carrier": "UPS",
"trackEvents": [
{ "trackingNo": "1Z999AA10123456784", "carrierCode": "UPS", "status": "<STATUS>",
"event": "Departed from facility", "eventTime": "2026-12-02 18:20:00" }
]
}
}Cancel an Order
POST /open-api/v1/oms/orders/{externalOrderNo}/cancel (no request body)
Conditions for cancellation:
| Order type | Statuses that can be canceled | Message when it cannot be canceled |
|---|---|---|
| Dropship | exprStatus is 0 Draft / 3 Checking / 10 Submitted | "Already in status X, cannot be revoked" (已某状态,不能撤销) |
| Self-pickup / FBA | Shipment status is Submitted | "The order has entered processing and cannot be canceled; please contact the warehouse" (订单已进入处理流程,不能取消,请联系仓库) |
After a successful cancellation the locked stock is released, status becomes 5 and exprStatus becomes 90, and the canceled order is returned. Canceling an order that is already canceled or shipped returns an error, so query status first.
curl -X POST https://api.vmwms.com/open-api/v1/oms/orders/PO-TEST-0001/cancel \
-H "x-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>"Paginated Order List
GET /open-api/v1/oms/orders
| Parameter | Required | Description |
|---|---|---|
status | No | Main status 0 to 5 |
startDate / endDate | No | yyyy-MM-dd; by creation time |
pageNum / pageSize | Recommended |
rows contains order objects (with trackingNo, without trackEvents).
curl "https://api.vmwms.com/open-api/v1/oms/orders?status=4&startDate=2026-12-01&endDate=2026-12-03&pageNum=1&pageSize=100" \
-H "x-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>"Generic Outbound Order View
The endpoints below query by system outbound order ID. A customer Key sees its own outbound orders, and a warehouse Key sees the outbound orders of all customers in its visible warehouses. For typical e-commerce integrations, /oms/orders above is enough.
Paginated Outbound Orders
GET /open-api/v1/outbound/orders
| Parameter | Description |
|---|---|
status | Main status 0 to 5 |
outboundNo | System outbound order number, exact match |
orderNumber | Customer order number, fuzzy match |
warehouseId | Warehouse ID; an empty list is returned for a warehouse that is not visible |
pageNum / pageSize |
Main response fields: id, outboundNo, orderNumber, externalOrderNo, warehouseId, warehouseName, outboundType, status, exprStatus, sendStatus, sendNo, expressNo, carrier, receiver, recipient address, isSelfLabel, labelUrl, orderType, shipDate, outWhDate, totalQty, remark, createTime, updateTime.
Outbound Order Details / Lines
GET /open-api/v1/outbound/orders/{id}: the outbound order plus itsitemslines.GET /open-api/v1/outbound/orders/{id}/items: the lines array only.
Line fields: id, skuId, skuCode, productName, expectedQty (to ship), shippedQty (shipped), status, sendCtn, ctnPcs, sendAcount, fbaNo, shipmentCode, markNo, remark. If not found or outside your data scope, code 404 "Data does not exist" (数据不存在) is returned.
Create an Outbound Order Draft
POST /open-api/v1/outbound/orders (customer Keys only)
Only creates a draft and its lines. It does not lock inventory and does not submit. The Open API has no endpoint for submitting a draft, so you need to continue in OMS. For e-commerce orders, use POST /oms/orders.
| Field | Required | Description |
|---|---|---|
warehouseId | Yes | Warehouse ID |
outboundNo | No | Leave blank to have the system generate it |
orderNumber | No | Customer order number |
outboundType | No | Outbound type |
receiver | No | Recipient |
remark | No | |
items[].skuCode | Yes | SKU code |
items[].expectedQty | Yes | Quantity to ship, >0 |
On success msg is "Outbound order created" (出库单创建成功) and data is the new outbound order ID. A warehouse Key calling it receives code 403 "This endpoint requires a customer API Key" (该接口需要货主 API Key).
FAQ
The order was created. Why is its status "Checking"?
After an API order is created it first enters Checking (exprStatus=3). The system then automatically validates it and locks inventory, and it usually becomes 10 Submitted very quickly. If it becomes 5 Validation failed, the most likely causes are insufficient inventory or incomplete information. Check the Exception (异常) tab of the dropship list in OMS and handle it there.
If I push the same platform order number twice, will it ship twice?
No. If a non-canceled order with the same number already exists, the original order is returned. A new order is created for the same number only when the original has been canceled.
Can I cancel an order that has already been picked?
Through the API, a dropship order can be canceled only while it is in Draft, Checking, or Submitted status. Once it is reviewed or being picked, contact the warehouse.
How do I get the tracking number?
Use the trackingNo returned by the order query, or register the order.shipped and order.tracking Webhook events to have it pushed automatically on shipment and on tracking changes.
What do I enter for the channel code?
Enter the shipping-channel value from your platform (the channel mapping must have been configured in OMS) or a system label-channel code. An unrecognized value does not make order creation fail; the order shows "Channel to confirm" (渠道待确认) and the warehouse confirms the channel. Contact the warehouse for the codes available.
