Confirm access before importing the catalogue

A Telegram account reseller integration needs more than a product list. Start with the API address and access instructions shown in your XiXi Wholesale account. Call the status endpoint to check the connection and whether the key is allowed to place balance-funded orders. Keep the API key on your server, outside browser code and public logs.

Use product queries to build a local catalogue mapping. Save the returned product identifier, current description, country, price and stock. A product identifier refers to a listing category rather than an individual delivered account. Preserve that distinction when connecting your own retail product to the supplier product.

Create one identifier for one business order

Before submitting a purchase, generate a unique client_order_id for that business order and store its requested product, quantity and expected price. Submit the current price returned by the API rather than copying an example from documentation. Keep your customer's retail amount separate from the supplier purchase parameters.

If a request times out or returns a temporary error, query the existing client_order_id before deciding what to do next. Do not generate another identifier simply to repeat an uncertain purchase. When a retry is appropriate under the account documentation, keep the same identifier and the same purchase parameters.

Represent payment and delivery as separate states

After an order is created, save its order_id and inspect the returned progress. A purchasing state means the supply process is still underway; it should not be presented to your customer as a completed delivery. Equally, an unresolved response should not automatically trigger another supplier purchase or an unsupported refund assumption.

Continue querying the same order using the documented polling interval and any next_poll_after_seconds guidance. Stop routine polling after a final outcome and retain the result for reconciliation. On a rate-limit response, respect Retry-After. Read the status response for your account's actual limits because keys belonging to one account share its quota.

Deliver the buyer's link without exposing the key

The order response can include delivered account entries and a delivery_url intended for that order's buyer. Where available, login_url opens the corresponding code-login entry. Pass the appropriate private delivery link to the correct customer rather than exposing your reseller API key or supplier account access.

File download endpoints and code retrieval have their own access requirements. Handle authenticated requests on your server and follow the response fields and account documentation. Treat delivery links as sensitive order material, restrict them to the matching buyer and avoid placing them in public analytics events or catalogue pages.

Reconcile the integration before expanding sales

Maintain a record linking your retail order, client_order_id, supplier order_id, requested quantity, delivered quantity and final financial result. Use the returned balance_cny for the website's recorded renminbi balance; a USDT reference value should not be substituted for that ledger. These fields make an individual order easier to investigate later.

Visit xixipifa.com for current products and consult the API instructions in your account before implementing purchase calls. Begin with status, product and balance queries, then validate the complete authorized order flow before expanding. A reliable integration preserves order identity from checkout through delivery instead of relying on repeated purchase attempts.