https://your-exchange. Substitute your test installation and sign private requests. Run the node request.mjs commands with the setup from the quickstart.
For a new connection, obtain an API key and the required scopes. Check the public GET /api/v3/ping and signed GET /api/v3/private/ping. The first call checks availability. The second checks access and signing. To identify the contracts on your installation, read GET /api/v3/public/contracts.
/api/v3 identifies the route generation. info.version in the OpenAPI file identifies the API description for tooling and leaves the request URL unchanged. The exchange form (operation-contract-v1), capability matrix (route-capabilities-v1), and snapshot (route-snapshot-v1) have separate versions. Verify them and repeat the production readiness checks after upgrading the exchange.
1
Find an exchange route
Choose a supported pair from the catalog. Save
route_id and read the required fields and verification rules. Find exchange routes2
Calculate the exchange
Send the amount the customer gives. Show the expected amount to receive, then submit the form and route snapshot for preflight. Wait for
can_create_order: true. Quote and check the order3
Create the order
Save the request body and
Idempotency-Key before sending. Save tracking_id and the order number public_id from the HTTP 201 response. Create an order4
Get payment instructions
Check the available order actions. Prepare instructions if the route requires it. Display account details or the checkout link from the GET response when the instructions are
ready. Get instructions and check payment5
Track the result
Read the compact order status and payment state. Display the customer’s payment report separately from confirmed receipt of funds. Read statuses · Set up webhooks
When the route requires a check
Files and verification
Dynamic fields, identity verification, and card verification.