Skip to content

Legacy-Compatible Protocol /api/wh/** ​

This page is for developers who already integrated with the old system's API. It explains how the legacy protocol is authenticated in VMWMS, its response format, and how to use each compatible endpoint. Endpoint paths and payloads are identical to the old system, so you generally do not need to change your code. For new integrations, use the new protocol /open-api/v1 directly.

Basics ​

ItemValue
Path prefixhttps://api.vmwms.com/api/wh/bizWhWorkOrder (the ECCANG-format conversion endpoints are under https://api.vmwms.com/api/wh/convert)
Usable KeysCustomer Keys only (a warehouse Key receives HTTP 403)
Data scopeFixed to the customer that owns the Key; identity and sort fields such as userId in the payload are ignored
Warehouse code whNoMatched only among warehouses currently available to you and in normal status, case-insensitive

Authentication ​

The legacy protocol uses the hytx-api-key request header, which accepts two kinds of values:

FormDescription
hytx-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>Recommended. The Key and Secret created in OMS, joined by .
hytx-api-key: <legacy key>A legacy key issued by the old system. It remains valid but can only be used on /api/wh/**

You can also use x-api-key + x-api-secret as with the new protocol.

About legacy keys:

  • A legacy key can only be sent in the hytx-api-key header and can only call /api/wh/**; it cannot call the new protocol.
  • After its first call, a "Legacy key" (旧版密钥) row appears on the Open API (开放API对接) page in OMS. You can view its last-used time and Revoke it; once revoked it is permanently invalid. A legacy key cannot be edited or rotated.
  • The platform reserves the right to retire legacy keys across the board, with advance notice. Legacy keys are less secure, so we recommend switching to a new Key soon: simply change the header value to <new Key>.<new Secret>; neither the endpoint paths nor the payloads need to change.

Response Format ​

The legacy protocol keeps the old system's response style, which differs from the new protocol:

Return typeTop-level fields
Paginatedrows, current, size, pages, total, code, msg, timestamp
Listrows, total, code, msg, timestamp
Single objectdata, code, msg, timestamp
No return valuecode, msg, timestamp
json
{ "rows": [ { "goodsSku": "SKU-A001", "totalStock": "10" } ], "total": "1", "code": "200", "msg": "请求成功", "timestamp": "1764748800000" }
  • All numbers and booleans are output as strings, such as "total":"25" and "enable":"1"; amounts are output with two decimal places, such as "declarePrice":"100.00".
  • An empty text field is output as ""; fields of other types are omitted when empty. Parse defensively.
  • Time format is yyyy-MM-dd HH:mm:ss in Beijing time, consistent with the old system.
  • Success message: OK when the Accept-Language request header starts with en, otherwise "请求成功" (Request succeeded).
  • Business failure: HTTP 200, {"code":"500","msg":"System check exception! reason: <reason>","timestamp":"..."}.
  • Identity error: {"code":"401","msg":"仓库权限不足"} (Insufficient warehouse permission).
  • Missing Key, invalid Key, read-only, rate-limit, and insufficient-scope failures occur before the request reaches the legacy protocol, so they are returned in the new-protocol format with a real HTTP 401 / 403 / 429. See Error Codes and Troubleshooting.

Endpoints a Read-Only Key Can Call ​

The following POST endpoints are actually queries, so a read-only Key can also call them: query/sku/stock, query/my/inv/page, query/sku/page, express/query/orderNumbers, query/express/ids, send/query/info; and the GET endpoints query/my/wh, express/query/{id}, packing/{id}, packing/by/inboundNo.

Endpoints at a Glance ​

CategoryMethodPath (after the prefix)Purpose
Warehouse inventoryGET/query/my/whMy warehouses
Warehouse inventoryPOST/query/sku/stockStock by SKU across warehouses
Warehouse inventoryPOST/query/my/inv/pagePaginated inventory
SKUPOST/add/skuBulk add (does not overwrite approved SKUs)
SKUPOST/batch/addUpdate/sku/listBulk add / overwrite
SKUPOST/update/skuEdit a single SKU
SKUPOST/query/sku/pagePaginated SKU list
SKUPOST/add/sku/relationSKU relation mapping
DropshipPOST/express/insertCreate orders in bulk
DropshipPOST/express/query/orderNumbersQuery in bulk by order number
DropshipPOST/query/express/idsQuery in bulk by ID
DropshipGET/express/query/{id}Query a single order by ID
DropshipPOST/express/update/labelurlRegister a self-supplied label
DropshipPOST/express/removeRevoke by ID
DropshipPOST/express/remove/orderNoRevoke by order number
Self-pickup / FBAPOST/send/insertCreate a shipment order
Self-pickup / FBAPOST/send/query/infoQuery in bulk by shipment number
Self-pickup / FBAPOST/send/returnRevoke a shipment order
Inbound forecastPOST/packing/insertCreate an inbound forecast
Inbound forecastPOST/packing/cancelCancel an inbound forecast
Inbound forecastGET/packing/{id}Query by ID
Inbound forecastGET/packing/by/inboundNoQuery by inbound order number
ECCANG formatPOST/api/wh/convert/ez/productECCANG product push
ECCANG formatPOST/api/wh/convert/ez/packingECCANG packing list push

Idempotency and Duplicate Prevention ​

Write endpoints in the legacy protocol return an error on a duplicate number instead of returning the existing document:

EndpointDuplicate-check fieldError message
express/insertorderNumberAn active non-draft order with the same number exists (including canceled): "Order number: X is duplicated" (订单号:X 重复); same number submitted again within 5 seconds: "X was submitted multiple times in a short period, please wait before submitting!" (X 短时间内提交了多次,请稍等提交!)
packing/insertpackingNo"Container number duplicated: X" (货柜号重复:X) (canceled shipments do not count)
send/insertsendNo["X"] already has the same shipment number! (["X"] 已经有相同的发货编号存在!)

Warehouses and Inventory ​

GET /query/my/wh: My Warehouses ​

Returns only warehouses in normal status, sorted by sort number ascending. Main fields in rows: id, whNo (warehouse code), whName, whNameEn, status (10 normal), partnerType (1 directly operated / 2 partner / 3 franchise), locationType (1 US East / 2 US West / 3 Canada), country, state, city, postalCode, address, name (contact), company, phoneNumber, email.

bash
curl https://api.vmwms.com/api/wh/bizWhWorkOrder/query/my/wh -H "hytx-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>"

POST /query/sku/stock: Stock by SKU Across Warehouses ​

  • Request body: an array of SKU codes, such as ["SKU-A001","SKU-A002"]; an empty array returns rows: [].
  • One row per warehouse + SKU; rows with zero on hand are also returned; SKUs that never had stock are not returned.
  • Response fields: whNo, zoneWhNo, whName, goodsSku, totalStock (on hand), lockStock (locked), currentStock (available = on hand − locked).
bash
curl -X POST https://api.vmwms.com/api/wh/bizWhWorkOrder/query/sku/stock \
  -H "hytx-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>" -H "Content-Type: application/json" \
  -d '["SKU-A001","SKU-A002"]'
json
{
  "rows": [
    { "whNo": "DEMO-CA1", "zoneWhNo": "DEMO-CA1", "whName": "Demo Warehouse", "goodsSku": "SKU-A001",
      "totalStock": "120", "lockStock": "8", "currentStock": "112" }
  ],
  "total": "1", "code": "200", "msg": "请求成功", "timestamp": "1764748800000"
}

POST /query/my/inv/page: Paginated Inventory ​

FieldRequiredDescription
offsetYesRow offset, starting at 0
limitYesRows per page, 1 to 1000
goodsSkuNoExact match
goodsSkuListNoAn array or a comma-separated string
whNoNoWarehouse code
keywordNoFuzzy match on SKU / warehouse code / location
  • Sorting is fixed: SKU descending, then on-hand quantity descending.
  • Use total for pagination information (current, size, and pages are fixed values, consistent with the old system).
  • On top of the query/sku/stock fields, rows adds inWhDate (warehouse entry date), remark, cusName, and mySku (SKU data).
bash
curl -X POST https://api.vmwms.com/api/wh/bizWhWorkOrder/query/my/inv/page \
  -H "hytx-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>" -H "Content-Type: application/json" \
  -d '{"offset":0,"limit":100,"whNo":"<WH_CODE>"}'

SKU ​

Legacy SKU payload fields: goodsSku (SKU code), sysGoodsSku (external-system SKU), upcBrand, goodsName, goodsNameEn, declarePrice, sizeUnit (1 / 2, or sizeUnitName = KG/CM / LB/INC), isBattery (0 / 1), goodsWeight, goodsLength, goodsWidth, goodsHeight, safeStock, unit. Name, unit, weight, length / width / height, and declared value are required and must be >0; the validation rules and messages are the same as in SKU.

Main fields of the returned SKU object: id, goodsSku, sysGoodsSku, upcBrand, goodsName, goodsNameEn, goodsImg, subjectName, declarePrice, sizeUnit, status (0 not reviewed / 10 approved), isBattery, goodsLength, goodsWidth, goodsHeight, goodsWeight, safeStock, remark, createTime, updateTime.

POST /add/sku: Bulk Add (Does Not Overwrite Approved SKUs) ​

Same rules as the new protocol's batch/add: a SKU that does not exist is created; one that exists but is not approved is overwritten; an approved one is skipped. For an empty array: "Import data cannot be empty!" (导入数据不能为空!). Response data: {flag, uploadCount, updateCount, repeatCount}.

bash
curl -X POST https://api.vmwms.com/api/wh/bizWhWorkOrder/add/sku \
  -H "hytx-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>" -H "Content-Type: application/json" \
  -d '[{"goodsSku":"SKU-A001","goodsName":"Desk Lamp","declarePrice":"19.9","sizeUnit":"1","goodsWeight":"1.2","goodsLength":"30","goodsWidth":"20","goodsHeight":"15"}]'

POST /batch/addUpdate/sku/list: Bulk Add / Overwrite ​

Up to 500 records; an existing SKU is always overwritten (including approved ones). For an empty array: "no record"; for more than 500: "At most 500" (最多500条). No data is returned.

POST /update/sku: Edit a Single SKU ​

Locates the SKU by goodsSku; edit only, never creates, and the SKU returns to pending review after the edit. If goodsSku is empty: "SKU cannot be empty" (SKU不能为空); if it does not exist: "SKU-A001 failed to get specification info by ID!" (SKU-A001 ID获取规格信息失败!).

POST /query/sku/page: Paginated SKU List ​

FieldDescription
limitRows per page; defaults to pageSize, then to 10; capped at 1000
offsetLegacy semantics: page number = offset ÷ limit + 1 (integer division), not a row offset; you can also pass the page number directly with pageNumber / pageIndex
goodsSku / sysGoodsSku / upcBrand / goodsName / goodsNameEnExact match
goodsSkuList / sysGoodsSkuListAn array or comma-separated
statusReview status 0 / 10
isBattery / sizeUnitEquality match
keywordFuzzy match on SKU / external-system SKU / Chinese and English names / brand code

Only enabled SKUs are returned, sorted by SKU ascending.

bash
curl -X POST https://api.vmwms.com/api/wh/bizWhWorkOrder/query/sku/page \
  -H "hytx-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>" -H "Content-Type: application/json" \
  -d '{"offset":0,"limit":100}'

POST /add/sku/relation: SKU Relation Mapping ​

Maps a platform SKU to a system SKU. After that, platform SKUs in express/insert and packing/insert are automatically replaced with the system SKU.

  • Request body: [{"goodsSku":"system SKU","relaGoodsSku":"platform SKU"}]; an empty array succeeds immediately.
  • The system SKU must already exist; submitting the same platform SKU again overwrites the old mapping.
  • Errors: "Reference SKU cannot be empty!" (参照SKU不能为空!), "Reference SKU length cannot exceed 100 characters!" (参照SKU长度不能超过100字符!), "System SKU cannot be empty!" (系统SKU不能为空!).
bash
curl -X POST https://api.vmwms.com/api/wh/bizWhWorkOrder/add/sku/relation \
  -H "hytx-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>" -H "Content-Type: application/json" \
  -d '[{"goodsSku":"SKU-A001","relaGoodsSku":"SHOP-LAMP-01"}]'

Dropship ​

POST /express/insert: Create Orders in Bulk ​

The whole batch is atomic: if any order fails validation, no order in the batch is created. On success every order is submitted and its inventory locked, and it can be queried immediately.

FieldRequiredDescription
whNoYesShipping warehouse code (shared by the whole batch)
isSelfLabelNoDefault labeling method for the whole batch: 10 self-supplied label; any other value = warehouse-generated label
platformChannel, etc.NoDefault label channel for the whole batch (used when an order does not specify one)
expressDtoListYesArray of orders
.orderNumberYesCustomer order number
.thirdOrderNumberNoThird-party order number
.isSelfLabelYes (per order or per batch)10 self-supplied label / other = warehouse-generated label
.trackingRequired for self-supplied labelsTracking number
.carrierRequired for self-supplied labelsCarrier (such as UPS, FedEx, USPS, DHL), not the label channel
.nameRequired for warehouse-generated labelsRecipient
.phoneNoIf empty, treated as 0000000000
.company / .emailNo
.country / .state / .city / .postalCode / .street1Required for warehouse-generated labelsRecipient address
.street2NoAddress line 2
.insuranceValueNoInsured value
.signatureServiceNameNoSignature service is enabled when it equals YES
.isPriority / .isPriorityNameNoPriority: isPriority is 1, or isPriorityName is YES
.remark / .opRemarkNoRemark / operation remark
.returnAddrNoReturn address; defaults to the warehouse code
.labelUrlNoLabel link; truncated if longer than 500 characters
.labelFileNoLabel file in base64 (≤5 MB, PDF / PNG / JPG); only for self-supplied labels; use either this or labelUrl
.platformChannelNoLabel channel (specify the channel for warehouse-generated labels). channel, channelCode, logisticsChannel, and shippingMethod are also recognized; if not recognized, the order shows "Channel to confirm" (渠道待确认)
.expressSkuListYesArray of lines
..goodsSkuYesSKU (automatically replaced with the system SKU if a relation mapping exists)
..quantityYesQuantity, >0
..remarkNo
bash
curl -X POST https://api.vmwms.com/api/wh/bizWhWorkOrder/express/insert \
  -H "hytx-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>" -H "Content-Type: application/json" \
  -d '{"whNo":"<WH_CODE>","expressDtoList":[{"orderNumber":"SO-TEST-0001","isSelfLabel":20,"platformChannel":"<CHANNEL>",
       "name":"John Doe","country":"US","state":"CA","city":"Irvine","postalCode":"92618","street1":"1 Main St",
       "expressSkuList":[{"goodsSku":"SKU-A001","quantity":1}]}]}'

rows contains one row per order, including id (the outbound order ID, used for later queries / revocation by ID), sysDefOrderNum (system order number), orderNumber, recipient information, and so on. Note that exprStatus in the response is always "0" (consistent with the old system); the order is actually already 10 Submitted, so rely on the query endpoints.

Validation errors (in the order checked):

Error messageCause
Dropship list is empty! (代发列表为空!)expressDtoList is empty
Order number N is empty! / X duplicate order number! (第 N 个订单号为空! / X 重复订单号!)Order number missing, or duplicated within the batch
X was submitted multiple times in a short period, please wait before submitting! (X 短时间内提交了多次,请稍等提交!)Repeat submission within 5 seconds
Order number: X is duplicated (订单号:X 重复)An active order with the same number already exists in the system
Shipping warehouse cannot be empty! / Labeling method cannot be empty! / Tracking number cannot be empty! / Channel cannot be empty! (发货仓库不能为空!/ 出单方式不能为空!/ 追踪单号不能为空!/ 渠道不能为空!)A required field is missing
Recipient name cannot be empty! / Postal code cannot be empty! / State/province cannot be empty! / Country code cannot be empty! / City cannot be empty! / Address line 1 cannot be empty! (收件人名字不能为空!/ 邮编不能为空!/ 州/省不能为空!/ 国家编号不能为空!/ 城市不能为空!/ 详细地址1不能为空!)Recipient information is missing for a warehouse-generated label
Shipping warehouse does not exist (发货仓库不存在)whNo is not a warehouse available to you
Order: X has no shipping SKU information! / Order: X SKU-A001 has no quantity (订单: X 没有发货SKU信息! / 订单: X 的 SKU-A001 没有填写数量)Lines are missing
Package quantity must be greater than 0! (包裹件数必须大于0!)Quantity ≤0
No SKU inventory found / SKU-A001: short by N (没有查询到SKU库存 / SKU-A001:缺少 N)Insufficient inventory; the whole batch is not created
A SKU you are not authorized to use is present; order rejected (存在无权使用的SKU,已拒绝下单)The SKU is not under your account

POST /express/query/orderNumbers: Query in Bulk by Order Number ​

  • Request body: {"orderNumberList":["SO-TEST-0001","SO-TEST-0002"]}, up to 50 (more than that returns "At most 50 per query" (最多一次查询50条)).
  • Returns your active dropship orders (including drafts, canceled, and intercepted); order numbers that are not found do not appear in the result.
bash
curl -X POST https://api.vmwms.com/api/wh/bizWhWorkOrder/express/query/orderNumbers \
  -H "hytx-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>" -H "Content-Type: application/json" \
  -d '{"orderNumberList":["SO-TEST-0001"]}'

Main fields of a dropship order object: id, sysDefOrderNum, orderNumber, thirdOrderNumber, zoneWhNo, isSelfLabel, recipient information, tracking (tracking number), trackCode, trackDate, labelUrl, carrier, exprStatus / exprStatusName (status; for values see Outbound Orders), orderType (10 one package one item / 20 one package multiple items), remark, createTime, updateTime, attachments, expressSkuList (lines: goodsSku, quantity, singleWeight, totalWeight, etc.).

POST /query/express/ids: Query in Bulk by ID ​

  • Request body: {"ids":["<outbound order ID>", ...]}, up to 50 (more than that returns "At most 50 orders per query" (每次最多查询50个单)).
  • The response fields are the same as above; revoked / voided orders are also returned, so you can confirm their final state.
  • If ids is empty or none are found, the call succeeds but returns no data.
bash
curl -X POST https://api.vmwms.com/api/wh/bizWhWorkOrder/query/express/ids \
  -H "hytx-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>" -H "Content-Type: application/json" \
  -d '{"ids":["1800000000000000031"]}'

GET /express/query/{id}: Query a Single Order by ID ​

id is the outbound order ID. If the order does not exist, is not yours, or is not a dropship order, "Query failed" (查询失败) is returned. Historical orders completed before the system upgrade on 2026-11-10 may not be found.

POST /express/update/labelurl: Register a Self-Supplied Label ​

  • Request body: [{"id":"<outbound order ID>","orderNumber":"SO-TEST-0001","fileUrl":"https://...","tracking":"optional","carrier":"optional"}].
  • The label can be changed only for orders in Draft, Checking, Validation failed, or Submitted status; otherwise: "The current status requires changing the label; please contact customer service!" (当前状态要修改面单,请联系客服!) (the whole batch is validated first and then written).
  • fileUrl overwrites the original label directly; tracking and carrier overwrite only when non-empty.
  • An id that is not under your account is skipped.
  • Required-field validation: "matching id is null!不能为空!", "order number id is empety!不能为空!", "file url is empety!不能为空!" (the messages are in mixed English and Chinese; the Chinese part means "cannot be empty!").
bash
curl -X POST https://api.vmwms.com/api/wh/bizWhWorkOrder/express/update/labelurl \
  -H "hytx-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>" -H "Content-Type: application/json" \
  -d '[{"id":"1800000000000000031","orderNumber":"SO-TEST-0001","fileUrl":"https://files.example.com/label.pdf","tracking":"1Z999AA10123456784","carrier":"UPS"}]'

POST /express/remove: Revoke by ID ​

  • Request body: {"ids":["<outbound order ID>", ...]}.
  • Only orders in Submitted or Validation failed status can be revoked; otherwise "SO-TEST-0001 cannot be revoked in its current status" (SO-TEST-0001 当前状态不能撤销) (the whole batch is validated first).
  • After revocation the inventory is released and the order is voided; the order number can be placed again.

POST /express/remove/orderNo: Revoke by Order Number ​

  • Request body: {"orderNumber":"SO-TEST-0001"}; if empty: "OrderNumber is empty".
  • Revokes all of your active dropship orders with that order number; if none is found: "SO-TEST-0001 does not exist."
  • Orders in Checking, Validation failed, or Submitted status can be revoked; for other statuses: "SO-TEST-0001 current status cannot be revoked."

Self-Pickup / Truck Delivery / FBA ​

POST /send/insert: Create a Shipment Order ​

Inventory is locked as soon as it is submitted.

FieldRequiredDescription
whNoYesShipping warehouse code. If missing: "Dispatch warehouse code cannot be empty!" (发车仓库编号不能为空!); if not found: "Warehouse does not exist: X" (仓库不存在: X)
isFbaNo1 = FBA transfer; in that case fbaNo is required and used as the shipment number
fbaNoRequired for FBAIf missing: "FBA transfer requires the FBA No., which cannot be empty!" (FBA转运需要填写FBA No.不能为空!)
sendNoYesShipment number / pickup order number, 1 to 100 characters, no Chinese characters, unique under your account
carTmsTypeYesDelivery method: 1 self-pickup / 2 truck delivery / 3 express
sendOutTypeNo10 pallet outbound / 20 full-carton outbound
plGoodsTypeNo10 pallet / 20 full carton / 30 by piece
toWhNoNoDestination warehouse (such as an FBA warehouse) code
carrierNoCarrier
remarkNoUp to 2000 characters; if carPlanDate is not provided, the first date found in the remark is used as the planned truck arrival date
carPlanDateNoPlanned truck arrival date
attachmentsNo[{"fileName":"...","url":"...","type":90}]; type defaults to 90 (other attachment)
sendRecordDtoListYesLines; if empty: "PU-TEST-0001 no detail info"
.goodsSkuYesA SKU that has been created, otherwise "SKU-A001 has no specifications maintained" (SKU-A001没有维护规格)
.sendCTNYesNumber of cartons to ship, >0
.ctnPCSYesPieces per carton, >0
.sendAcountYesNumber of pieces to ship, >0
.shipmentCode / .markNoNoShipment ID / carton mark

Field names are case-insensitive and also accept _ and - styles (for example, sendCTN, sendCtn, and send_ctn all work). The SKU's own length, width, height, and weight must be >0; if inventory is insufficient, the whole order is not created.

Response data: {sysOrderNo, id} (for FBA, sysOrderNo is the FBA number; otherwise it is the system outbound order number).

bash
curl -X POST https://api.vmwms.com/api/wh/bizWhWorkOrder/send/insert \
  -H "hytx-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>" -H "Content-Type: application/json" \
  -d '{"whNo":"<WH_CODE>","sendNo":"PU-TEST-0001","carTmsType":1,"sendOutType":20,
       "sendRecordDtoList":[{"goodsSku":"SKU-A001","sendCTN":5,"ctnPCS":10,"sendAcount":50}]}'

POST /send/query/info: Query in Bulk by Shipment Number ​

  • Request body: {"sendNosList":["PU-TEST-0001"]}, up to 50 (more than that returns "At most 50 per query" (最查询多50条)); if empty, data: {} is returned.
  • Returns your active shipment orders in Submitted / Picking / Staging / Ready for Dispatch / Shipped status; shipment numbers not found do not appear.
  • Status status: 0 Draft / 10 Submitted / 20 Picking / 25 Picking complete / 28 Staging / 30 Ready for Dispatch (待出库) / 36 Shipped / 90 Revoked.
  • Main fields: id, sysOrderNo, sendNo, whNo, toWhNo, status, statusName, carTmsType, isFba, fbaNo, sendOutType, carPlanDate, waitOutWhDate, outWhDate, palletCount, attachments, bizWhFc (destination warehouse address), sendRecordDtoList (lines).

POST /send/return: Revoke a Shipment Order ​

  • Request body: {"ids":["<shipment order ID>"]}; if empty: "Please select the shipment orders to revoke!" (请选择需要撤销的发货单!).
  • Only orders in Submitted status can be revoked; otherwise "PU-TEST-0001 is already in status X and cannot be returned" (PU-TEST-0001已经某状态,不能退回); if the order does not exist or is not yours: "Data does not exist" (数据不存在).
  • After revocation the inventory is released and the status becomes 90 Revoked.

Inbound Forecasts ​

POST /packing/insert: Create an Inbound Forecast ​

Saving submits it.

FieldRequiredDescription
packingNoYesContainer number, 1 to 45 characters, no Chinese characters; unique among your non-canceled shipments
whNoYesWarehouse code. If missing: "Please select a warehouse" (请选择仓库); if not found: "Warehouse does not exist: X" (仓库不存在: X)
arriveWhDateYesExpected warehouse arrival date (a date string or a millisecond timestamp)
packageTypeYes1 full container / 2 loose cargo / 3 pallet
containerSizeRequired for full container20 / 40 / 45
containerType / leavePort / arrivePortNo
leaveDate / arriveDateNo
isLiveUpload / mixPallteNoWhether to use live putaway / whether pallets are mixed
remarkNoUp to 500 characters
attachmentsNo[{"fileName":"...","url":"...","type":...}]
packRecordListYesLines; if empty: "detail info is empty"
.goodsSkuYesSKU (automatically replaced with the system SKU if a relation mapping exists)
.packCountYesQuantity, >0
.totalCTNDependsTotal cartons, >0; when ctnPCS is empty / 0 / 1, it automatically equals the quantity
.totalPalletNoDefaults to 0
.ctnPCSNoPieces per carton; when empty / 0 / 1, each unit is treated as one carton and the carton specifications come from the SKU specifications
.ctnSizeUnitRequired when ctnPCS>11 KG/CM / 2 LB/INC
.ctnLength / .ctnWidth / .ctnHeight / .ctnWeightRequired when ctnPCS>1>0
.marksNosNoCarton mark; lines with the same carton mark + SKU + pieces per carton are merged
.remarkNo

Response data: {receiptNo, id} (receiptNo is the system inbound order number).

bash
curl -X POST https://api.vmwms.com/api/wh/bizWhWorkOrder/packing/insert \
  -H "hytx-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>" -H "Content-Type: application/json" \
  -d '{"packingNo":"TEST1234567","whNo":"<WH_CODE>","arriveWhDate":"2026-12-20","packageType":1,"containerSize":40,
       "packRecordList":[{"goodsSku":"SKU-A001","packCount":500,"totalCTN":50,"ctnPCS":10,"ctnSizeUnit":1,
       "ctnLength":60,"ctnWidth":40,"ctnHeight":40,"ctnWeight":15}]}'

Common errors:

  • "Container number cannot be empty!" (货柜编号不能为空!)
  • "Container number cannot contain Chinese characters" (柜号不能包含汉字)
  • "Container number length cannot exceed 45 characters!" (货柜编号长度不能超过45字符!)
  • "Expected warehouse arrival date cannot be empty!" (预计到仓日期不能为空!)
  • "TEST1234567 Packing type cannot be empty!" (TEST1234567 装箱类型不能为空!)
  • "TEST1234567 Please enter the container size! cannot be empty!" (TEST1234567 请填写柜型!不能为空!)
  • "Container number duplicated: TEST1234567" (货柜号重复:TEST1234567)
  • "SKU SKU-A001 does not exist; please add it before importing!" (SKU SKU-A001不存在,请添加后在导入!)
  • "Please enter the carton dimensions, which cannot be empty!" (请填写外箱尺寸规格不能为空!)
  • For a wrong date format: "arriveWhDate date format error: x" (arriveWhDate 日期格式错误: x).

POST /packing/cancel: Cancel an Inbound Forecast ​

  • Request body: {"ids":["<inbound forecast ID>", ...]}; if empty or none are found, the call simply succeeds.
  • Only shipments In Transit (在途中; not yet received) can be canceled. If any one does not qualify, none in the batch are canceled, with the message "Only [In Transit] status can be canceled!" (只有【在途中】状态可以撤销!).
  • After cancellation the container number can be booked again.
bash
curl -X POST https://api.vmwms.com/api/wh/bizWhWorkOrder/packing/cancel \
  -H "hytx-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>" -H "Content-Type: application/json" \
  -d '{"ids":["1800000000000000021"]}'

GET /packing/{id}: Query by ID ​

If the shipment does not exist or is not yours: "Failed to query data" (查询数据失败). For empty text fields, this endpoint omits the field (instead of returning ""), so parse defensively.

GET /packing/by/inboundNo: Query by Inbound Order Number ​

  • Parameter: inboundNo (the inbound order number receiptNo, exact match); if empty: "Inbound order number cannot be empty!" (入库单号不能为空!).
  • If not found, the call succeeds but returns no data; canceled shipments can also be found.
bash
curl "https://api.vmwms.com/api/wh/bizWhWorkOrder/packing/by/inboundNo?inboundNo=<RECEIPT_NO>" \
  -H "hytx-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>"

Main fields of an inbound forecast object: id, receiptNo, packingNo, whNo, arriveWhDate, packageType, containerSize, status / statusName, remark, attachments, packRecordList (lines: goodsSku, packCount, verifyCount (received), totalCTN, ctnPCS, carton specifications, status, etc.), packCountTotal (total expected), verifyCountTotal (total received).

Shipment status status: 0 Draft (including canceled) / 10 In Transit (在途中) / 15 Arrived / 18 Receiving (receipt being confirmed) / 20 Received (stored). For lines, there are also 30 Putaway in progress / 40 Putaway complete.

ECCANG Format Conversion ​

POST /api/wh/convert/ez/product: ECCANG Product Push ​

  • Request body: {"Products":[{"ProductSku","ProductTitleEn","ProductTitleZh","ProductContainBattery","ProductDeclaredValue","ProductLength","ProductWidth","ProductHeight","ProductWeight"}]}; if empty: "params is null".
  • The name is taken as "English name|Chinese name"; the unit is fixed to KG/CM; a ProductContainBattery value of "否" (No) means no battery.
  • Same rules as add/sku (approved SKUs are not overwritten); returns {flag, uploadCount, updateCount, repeatCount}.
bash
curl -X POST https://api.vmwms.com/api/wh/convert/ez/product \
  -H "hytx-api-key: <YOUR_API_KEY>.<YOUR_API_SECRET>" -H "Content-Type: application/json" \
  -d '{"Products":[{"ProductSku":"SKU-A001","ProductTitleEn":"Desk Lamp","ProductTitleZh":"台灯","ProductContainBattery":"否",
       "ProductDeclaredValue":19.9,"ProductLength":30,"ProductWidth":20,"ProductHeight":15,"ProductWeight":1.2}]}'

POST /api/wh/convert/ez/packing: ECCANG Packing List Push ​

  • Request body: {"Details":[{"TrackingNo","CreateDate","Products":[{"ProductSku","ExpectedQuantity"}],"PackingListBox":[{"ProductSku"}]}]}.
  • The container number is taken from TrackingNo and the expected warehouse arrival from CreateDate; the shipment is created as a 40-foot full container with one unit per carton, and the warehouse is your first available warehouse.
  • Errors: "params is null", "no exist whNo", SKU: ["X"] has no specification info (SKU: ["X"] 没有规格信息); a duplicate container number reports the same error as packing/insert.

Legacy Endpoints Not Currently Supported ​

The following legacy endpoints are not currently provided in VMWMS. Calling them returns "Request address does not exist" (请求地址不存在) (404). Use the alternatives below:

Legacy endpoint (prefix /api/wh/bizWhWorkOrder/)Alternative
GET packing/by/cntrNoNew protocol GET /open-api/v1/oms/inbound/{packingNo}
POST packing/{id}/ctnMark/pdfDownload the carton marks in OMS
GET query/label/channel, POST query/label/rate, POST create/label/v1, GET query/{orderId}/label, GET label/shipfrom, DELETE cancel/{orderId}/label, DELETE cancel/label/{labelId}, POST test/clac/fee, POST compare/clac/priceNone for now
POST add/return, POST return/del/{returnId}, GET return/query/{returnId}None for now
POST send/modify/info, POST send/modify/carTmsType, GET send/{id}For queries, use send/query/info
POST express/batch/stopexpress/remove, express/remove/orderNo, or the new protocol's cancel endpoint
GET express/query/orderNumberexpress/query/orderNumbers
POST add/attachment/{relationId}Pass attachments when creating the order
POST /api/wh/convert/ez/out/orderexpress/insert or the new protocol POST /open-api/v1/oms/orders

FAQ ​

Can I keep using the old system's endpoints? ​

Yes. The endpoint paths and payloads in the "Endpoints at a Glance" table above are identical to the old system, so existing integrations generally need no changes.

How long will legacy keys keep working? ​

They are currently still valid. The platform will give advance notice before retiring them across the board. We recommend creating a new Key in OMS soon and changing the value of hytx-api-key to <new Key>.<new Secret>.

A legacy endpoint returns 404 "Request address does not exist" (请求地址不存在) ​

That endpoint is not currently provided in VMWMS. See the alternatives in the "Legacy Endpoints Not Currently Supported" table above.

Why is exprStatus returned by express/insert 0? ​

This is to stay consistent with the old system. The order has actually been submitted (10). Call express/query/orderNumbers to get the actual status.

Can I re-place an order with the same order number after revoking it? ​

Yes. After you revoke it with express/remove, the order is voided, and the same number can be placed again through express/insert.