API Integration FAQ
This page collects the questions developers ask most often when integrating with the VMWMS Open API. Each answer links to the detailed documentation.
Where do I get an API Key?
Log in to OMS with the primary account, go to System → Open API (开放API对接), and click Create API key. Sub-accounts cannot create keys. See Get an API Key.
I did not save the Secret. Can I recover it?
No. The Secret is shown only once, when you create or rotate a key. Click Rotate in the row of that key to generate a new Secret. See Rotate a Secret.
Why do I keep getting 401?
A wrong Key or Secret, a revoked or expired Key, or a disabled account all return 401. Test with GET /open-api/v1/ping, check for stray spaces, and confirm in OMS that the Key status is "Active" (有效). See If you get a 401.
Do requests need to be signed?
No. Just send the x-api-key and x-api-secret request headers. Only the webhooks we push to you need signature verification. See Authentication and Examples.
Why did I get HTTP 200 but the request actually failed?
When a business validation fails, the HTTP status code is still 200. Check whether code in the response body is 200. See Response Format.
I get "No permission to use this SKU or it does not exist" (无权使用或不存在的SKU)
Every SKU used in an order or inbound forecast must first be created under your account, and the code must match exactly. Create the SKU through the SKU endpoints first. See SKU.
If I push the same order twice, will it ship twice?
No. Under the new protocol, order creation is idempotent on the platform order number. If a non-canceled order already exists, the original order is returned. See Idempotency.
After I create an order it stays in "Checking" or becomes "Check failed"
After an API order is created, it first enters "Checking" (校验中). The system validates inventory and automatically moves it to "Submitted". If it fails, for example because of insufficient stock, it becomes "Check failed" (校验失败). You can see these orders on the Exception tab of Dropshipping in OMS. See Outbound.
How do I get the tracking number and tracking events?
The order query endpoint returns trackingNo and trackEvents. You can also subscribe to the order.shipped and order.tracking webhooks to receive them automatically. See Query Order Status and Tracking and Webhooks.
The order is already being picked. Can I still cancel it through the API?
For dropship orders, only Draft, Checking, and Submitted orders can be canceled through the API. Once an order is in review or picking, contact the warehouse. See Cancel an Order.
I get "Too many requests" (请求过于频繁)
Each Key is limited to 600 requests per minute by default. Reduce your call rate, or edit the Key in OMS and raise the per-minute limit (up to 6000). See Rate Limits.
Webhooks are not arriving, or signature verification fails
Confirm that the subscription is enabled, that it subscribes to the event, and that the callback URL is reachable from the public internet. Verification must use the raw request body bytes and the webhook signing secret (not the API Secret). See Webhook FAQ.
Do the legacy system's endpoints still work? Do I need to change anything?
Most endpoints of the legacy protocol /api/wh/** keep working, so you usually do not need to change anything. We recommend replacing old keys with a new API Key. See Legacy Compatible Protocol.
The available quantity for one SKU does not match
inventory/available currently matches codes by containment, so it adds up the quantities of similar codes. Use the now-stock endpoint and filter by exact skuCode. See Inventory.
Is there a test environment?
Currently there is only the production environment. We suggest getting familiar with the query endpoints using a read-only Key, and verifying write endpoints in small batches with test SKUs and test order numbers. See API Documentation Overview.
