FAQ
About 781 words
Integration and permissions
How many stores can one account have? There is no limit. Each store has its own credentials, its own callback, and its own API scopes, while the balance and tier are shared.
Can a store be moved to another account? No. A store's owning account is fixed, and both orders and credentials are bound to that store. To migrate, create a new store and integrate again.
Can I call the API with the admin account password? No. The portal password is only used to sign in to the portal; the API only accepts a store's API Key/Secret.
Which storefront platforms are supported? We currently provide an adapter for Dujiao-Next-type storefronts: fill in the address and credentials and the integration is done. For a self-built storefront, implement it yourself following the API Reference.
API calls
My signature is always wrong. What should I do? Check in this order: whether the timestamp is in Unix seconds, whether it is within 5 minutes of the server time, whether the signature string computes the digest from the raw request body, and whether the Secret is the currently valid version. For details, see Authentication and Signing.
Why use GET for queries and POST for orders? Pure queries such as fetching the catalog, product list, orders, and deliverables use GET, with fields appended to the address; availability and quotes need a product structure passed in, so they use POST but remain read-only; placing orders, cancelling, and filing after-sales tickets are the POST calls that actually change state. The signature string algorithm differs by method; see Authentication and Signing.
My order request timed out. Can I simply retry? Yes, but you must retry with the same req_id. If you receive 9xxx (uncertain result), do not place a new order; first query with get_orders by trace_id to confirm.
Can the same order number be placed twice? Within the same store, the same req_id produces only one order. Switching stores or using a new key generates a new order, so take care to distinguish the business cases.
Is batch ordering supported? One order can contain multiple SKU lines, but multiple orders cannot be submitted together.
Funds
Why does it say the balance is insufficient when it is sufficient? The held amount is calculated from the quote, which may have been updated; get a new quote and then place the order. Also check whether other orders are occupying your held allowance.
Can I cancel after placing an order? Undelivered orders can be submitted for cancellation, with the result confirmed asynchronously; delivered orders cannot be cancelled and can only be handled through after-sales.
Where are refunds paid? They are returned to your xstock account balance, not to a bank card or payment channel. Refunds of the top-up itself are handled separately.
Is credit or a payment term available? Not in the initial phase; orders are rejected when the balance is insufficient.
Delivery
Why has my order not been delivered for a long time? It may still be in the sourcing process or escalated for manual verification. Use the order query API to check fulfill_state; if it shows undelivered and the expected duration has been exceeded, contact portal support with the order number.
Can only part of an order be delivered? No. An order is delivered only once it is fully sourced.
Can lost deliverables be reissued? You can query them again with get_orders (with_delivers=true). However, also check your own persistence logic; deliverables may have a validity period.
Can the same card key be sent to two consumers? No. One delivery unit corresponds to exactly one valid sale, and repeated notifications or repeated collection never produce a second copy.
After-sales and reconciliation
A consumer asks for a refund. Can I refund the consumer directly? Yes, that is a transaction between you and the consumer. Claims against the platform must be verified separately through an after-sales ticket; neither replaces the other.
Who do I contact when reconciliation shows a discrepancy? First check the portal ledger using the order number; if it still cannot be explained, submit a ticket with the order number, amount, time, and screenshots.
Security
What should I do if the Secret leaks? Rotate it in the portal immediately. The old key expires after a grace period, and the attribution of historical orders is unchanged; also check the logs and frontend code for leftovers.
Do API calls require a fixed IP? An IP allowlist can optionally be enabled. Once enabled, only allowlisted addresses can call the API, which significantly reduces the risk of key leakage.