API Documentation Overview
This section is for developers integrating with the VMWMS Open API. It explains how to connect your ERP, e-commerce platform, or in-house system to the warehouse: sync products, push inbound forecasts (ASNs), place outbound orders, query inventory, and receive shipment and tracking callbacks.
Environment and Endpoints
| Item | Value |
|---|---|
| API domain | https://api.vmwms.com |
| New protocol (recommended) | https://api.vmwms.com/open-api/v1/... |
| Legacy-compatible protocol | https://api.vmwms.com/api/wh/... (only for systems already integrated with the legacy protocol) |
| Apply for an API Key | Client OMS https://oms.vmwms.com → System (系统) → Open API (开放API对接) |
| Protocol | HTTPS only; request and response bodies are application/json;charset=UTF-8 |
| Machine-readable API description | GET https://api.vmwms.com/v3/api-docs/open-api (OpenAPI 3 JSON, new protocol v1 only; can be imported into Postman and similar tools) |
Only the production environment is available; there is no separate test environment. During integration testing, start with a read-only API Key and call the query endpoints. For write endpoints, use test SKUs and test order numbers in small batches.
Choosing a Protocol
New protocol /open-api/v1 | Legacy-compatible protocol /api/wh/** | |
|---|---|---|
| Intended for | All new integrations | Systems already integrated with the legacy system's API that are not being reworked |
| Authentication headers | x-api-key + x-api-secret | hytx-api-key |
| Response format | {code, msg, data}; numbers are JSON numbers (large integers and amounts are strings) | All numbers and booleans are strings; code is "200" |
| Business failure | HTTP 200, code ≠ 200 | HTTP 200, code is "500" |
| Notes | The main content of this section | See Legacy-Compatible Protocol |
Quick Start in Five Minutes
Sign in to OMS with the main account, go to the Open API (开放API对接) page, and Create API key. Save the Key and Secret immediately. See Get an API Key.
Call the connectivity endpoint to confirm the Key works:
bashcurl https://api.vmwms.com/open-api/v1/ping \ -H "x-api-key: <YOUR_API_KEY>" -H "x-api-secret: <YOUR_API_SECRET>" # Returns {"code":200,"msg":"操作成功","data":"pong"}Call
GET /open-api/v1/whoamito verify your identity and the warehouse IDs available to you, then call Warehouses and Locations to get warehouse codes.Integrate the business flows in this order: SKU → Inbound Forecasts → Outbound Orders → Inventory.
If you need real-time shipment and tracking updates, register a Webhook to reduce polling.
Contents of This Section
| Page | Content |
|---|---|
| Get an API Key | Create, rotate, and revoke Keys; view the call log |
| Authentication and Examples | Request headers, scopes, curl / Python / Node.js / Java examples |
| Conventions | Response format, data types, pagination, time, idempotency, rate limits |
| SKU | Create, edit, bulk-sync, and query products; low-stock alerts |
| Inbound Forecasts | Push inbound forecasts; query shipments and expected inbound |
| Outbound Orders (Dropship / Self-Pickup) | Place orders, query status and tracking, cancel |
| Inventory | Available stock, stock details, available quantity |
| Warehouses and Locations | Visible warehouses, warehouse details, locations and zones, customer info |
| Webhook | Subscribe to events, payload format, signature verification |
| Legacy-Compatible Protocol | /api/wh/** endpoint reference (for legacy integrators) |
| Error Codes and Troubleshooting | Common error messages, causes, and fixes |
| Changelog | API change history |
FAQ
Is there a test environment or sandbox?
Only the production environment is available. Start with a read-only Key and the query endpoints to get familiar with the data. For write endpoints, use dedicated test SKUs and test order numbers, and cancel the test documents in OMS when you are done.
Should I use the new protocol or the legacy protocol?
Always use the new protocol /open-api/v1 for new integrations. The legacy protocol is kept only for existing integrations and no new capabilities are being added to it.
Is there an SDK?
There is no official SDK at this time. The API is standard HTTPS + JSON. You can refer to the code in Authentication and Examples, or import the OpenAPI description into a tool to generate a client automatically.
For more questions, see API Integration FAQ.
