Skip to content

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 ​

ItemValue
API domainhttps://api.vmwms.com
New protocol (recommended)https://api.vmwms.com/open-api/v1/...
Legacy-compatible protocolhttps://api.vmwms.com/api/wh/... (only for systems already integrated with the legacy protocol)
Apply for an API KeyClient OMS https://oms.vmwms.com → System (系统) → Open API (开放API对接)
ProtocolHTTPS only; request and response bodies are application/json;charset=UTF-8
Machine-readable API descriptionGET 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/v1Legacy-compatible protocol /api/wh/**
Intended forAll new integrationsSystems already integrated with the legacy system's API that are not being reworked
Authentication headersx-api-key + x-api-secrethytx-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 failureHTTP 200, code ≠ 200HTTP 200, code is "500"
NotesThe main content of this sectionSee Legacy-Compatible Protocol

Quick Start in Five Minutes ​

  1. 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.

  2. Call the connectivity endpoint to confirm the Key works:

    bash
    curl 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"}
  3. Call GET /open-api/v1/whoami to verify your identity and the warehouse IDs available to you, then call Warehouses and Locations to get warehouse codes.

  4. Integrate the business flows in this order: SKU → Inbound Forecasts → Outbound Orders → Inventory.

  5. If you need real-time shipment and tracking updates, register a Webhook to reduce polling.

Contents of This Section ​

PageContent
Get an API KeyCreate, rotate, and revoke Keys; view the call log
Authentication and ExamplesRequest headers, scopes, curl / Python / Node.js / Java examples
ConventionsResponse format, data types, pagination, time, idempotency, rate limits
SKUCreate, edit, bulk-sync, and query products; low-stock alerts
Inbound ForecastsPush inbound forecasts; query shipments and expected inbound
Outbound Orders (Dropship / Self-Pickup)Place orders, query status and tracking, cancel
InventoryAvailable stock, stock details, available quantity
Warehouses and LocationsVisible warehouses, warehouse details, locations and zones, customer info
WebhookSubscribe to events, payload format, signature verification
Legacy-Compatible Protocol/api/wh/** endpoint reference (for legacy integrators)
Error Codes and TroubleshootingCommon error messages, causes, and fixes
ChangelogAPI 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.