Set up the integration backend
- Get the API address, token, and HMAC secret for the customer account you want to connect. Store the credentials on your server and grant the scopes needed for the workflow. Start by checking the connection on a test installation.
- Check which users in your application can view the shop order, exchange order, and payment details. Your backend selects the credential associated with the account. Exchanger API checks the key’s scopes and resource ownership on the exchanger.
- Before the first create request, save your local operation ID, the request body, and the
Idempotency-Key. Save the returnedtracking_idorpublic_idas a string. Use it to update the same record after polling or receiving a webhook. Safe retries
Website and mobile app
- Load the payment systems and exchange routes with
public-api:exchange:routes:read. Read the selected route’s capabilities to display current limits, reserves, and required fields. - Calculate the amount with
public-api:exchange:quotes:read, pass the quote snapshot to preflight, and display field errors. Ask the customer to confirm onceresult.preflight.can_create_orderistrue. External checks can run when the order is created. - Create the order with
public-api:exchange:orders:createand the saved idempotency key. Fetch payment instructions. Display payment details or the checkout link onceresult.payment_instructions.statusis"ready". - After the session resumes, read the order by its saved identifier. Use the compact status to refresh the interface and load full details when the customer opens the order. Complete exchange workflow
Telegram bot
Your bot sends commands to a backend that stores the draft form and associates the bot session with a customer account. Show the quoted amount and required fields before creating the order. The confirmation button submits one operation with the savedIdempotency-Key, even if the user presses it more than once. Before fetching status, verify that the order belongs to the linked session.
For notifications, subscribe to order events. Verify the signature, record the event ID, and read the current order status. Notify the user after your system saves the update.
CRM and support
Use GET /private/orders withpublic-api:orders:read for history. Use compact order status to refresh a single order. These requests return records owned by the selected key. If the CRM handles multiple customer accounts, resolve the account before making the request.
When order.status_changed arrives, update the matching record. For reconciliation, use a cursor list with the same filters and sorting on each page. Show support the order identifier and meta.request_id when they need to identify a particular API request. Order history
Online shop and payment processing
An online shop can call Exchanger API as an exchanger customer and associate a shop order with an exchange order. After payment preparation, opendetails.checkout_url when status is ready and mode is checkout. For mode: "requisites", show the payment details returned by the exchanger.
Read payment progress after order.payment_received or when the customer returns from the payment form. result.payment.provider_confirmed records confirmed receipt. To check whether an exchange has completed, read result.status.key and look for "completed". The exchanger receives payment confirmation through the provider configured by its operator.
Partner portal
Read the partner profile withpublic-api:partner:read and display referral_link.url to its owner. Use the separate read scopes for referrals, exchange earnings, and statistics. For withdrawals, load methods and preview the payout with public-api:partner:payouts:read first. Grant public-api:partner:payouts:create only when the portal submits approved requests. Earnings and payouts
Check a status update
Copyrequest.mjs from the quickstart and substitute the tracking_id of an order on your test installation. Either public-api:orders:detail:read or public-api:orders:read grants access.
200 response for a completed test order.
403, check the operation’s scope. For 404, check the identifier and account. For 429 quota_exceeded, wait for the quota reset. For 429 rate_limit_exceeded, follow Retry-After when provided. If a create request times out with an unknown result, retry with the same body and idempotency key and a fresh signature. API errors · Production checklist