Skip to content

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 ​

MethodPathPurposescope
POST/open-api/v1/oms/ordersCreate an order (auto-submitted)oms:write
GET/open-api/v1/oms/orders/{externalOrderNo}Get order status and trackingoms:read
POST/open-api/v1/oms/orders/{externalOrderNo}/cancelCancel an orderoms:write
GET/open-api/v1/oms/ordersPaginated order listoms:read
GET/open-api/v1/outbound/ordersPaginated 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}/itemsOutbound order linesoutbound:read
POST/open-api/v1/outbound/ordersCreate an outbound order draftoutbound: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
0Draft
1Submitted
2Picking
3Ready to Ship
4Shipped
5Cancelled
exprStatus (detailed dropship status)Meaning
0Draft
3Checking (after an API order is created it first enters this status; the system validates inventory and so on, then automatically changes it to 10)
5Validation failed (shown as Exception in OMS)
10Submitted
20Reviewed
30Picking / picking complete
35To Pick Up
40Picked Up (shipped)
50Recall / return
60Intercepted
90Cancelled

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 labelUrl or labelFile is 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 ​

FieldTypeRequiredDescription
externalOrderNostringYesPlatform order number; the idempotency key
outboundTypeintNo20 dropship (default) / 10 self-pickup / FBA
warehouseIdlongOne of the twoShipping warehouse ID (takes precedence)
warehouseCodestringOne of the twoShipping warehouse code
carrierstringNoCarrier
trackingNostringRecommended for self-supplied labelsTracking number of the self-supplied label
labelUrlstringNoSelf-supplied label URL; must be http(s), up to 500 characters; use either this or labelFile
labelFilestringNoSelf-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
channelCodestringNoChannel 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
sendNostringRequired for self-pickupShipment number / FBA No., 1 to 100 characters, no Chinese characters, unique under your account
carTmsTypeintRequired for self-pickupDelivery method: 1 self-pickup / 2 truck delivery / 3 express
isFbaintNoFor self-pickup, whether it is an FBA transfer: 0 no / 1 yes
recipientobjectRequired for dropshipRecipient information
recipient.namestringRecipient
recipient.companystringCompany
recipient.phonestringPhone
recipient.emailstringEmail
recipient.countrystringTwo-letter country code, such as US
recipient.statestringTwo-letter state / province code, such as CA
recipient.citystringCity
recipient.address1 / address2stringAddress line 1 / 2
recipient.zipstringPostal code
itemsarrayYesOrder lines
items[].skuCodestringYesA SKU code under your account
items[].qtydecimalYesQuantity, >0
items[].remarkstringNoLine remark

Request Example: Dropship (Warehouse-Generated Label) ​

bash
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) ​

bash
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 ​

bash
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 ​

json
{
  "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 messageCause 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).

bash
curl https://api.vmwms.com/open-api/v1/oms/orders/PO-TEST-0001 -H "x-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>"
json
{
  "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 typeStatuses that can be canceledMessage when it cannot be canceled
DropshipexprStatus is 0 Draft / 3 Checking / 10 Submitted"Already in status X, cannot be revoked" (已某状态,不能撤销)
Self-pickup / FBAShipment 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.

bash
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

ParameterRequiredDescription
statusNoMain status 0 to 5
startDate / endDateNoyyyy-MM-dd; by creation time
pageNum / pageSizeRecommended

rows contains order objects (with trackingNo, without trackEvents).

bash
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

ParameterDescription
statusMain status 0 to 5
outboundNoSystem outbound order number, exact match
orderNumberCustomer order number, fuzzy match
warehouseIdWarehouse 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 its items lines.
  • 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.

FieldRequiredDescription
warehouseIdYesWarehouse ID
outboundNoNoLeave blank to have the system generate it
orderNumberNoCustomer order number
outboundTypeNoOutbound type
receiverNoRecipient
remarkNo
items[].skuCodeYesSKU code
items[].expectedQtyYesQuantity 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.