Skip to main content
List exchange routes so customers can choose from available currency pairs. The catalog includes active currencies and routes with at least one available rate source. After they pick a pair, read the form requirements and save the route_id for quoting. The examples use https://your-exchange and HMAC v2 signing. Use the quickstart setup for the node request.mjs commands.

1. List currencies the customer can send

The key needs public-api:exchange:routes:read. Request and response reference
The top-level id identifies the exchanger currency with its payment system and network. Use that ID for from_currency_id or to_currency_id. The nested payment.id and currency.id identify the payment system and currency code. The codes.network_in and codes.network_out fields distinguish networks. filter[side]=both includes options available on either side.
200 OK · response excerpt
Once the customer picks the currency to send, read routes.give_to. In each available pair, currency_id identifies the currency to receive. For selection from the receive side, use routes.receive_from. To load full items for the other side, list payment systems with filter[from_currency_id] or filter[to_currency_id].

2. Find the route for the pair

The key needs public-api:exchange:routes:read. Request and response reference
200 OK · response excerpt
Use result[].limits for amount ranges and result[].rate for rate options. If several routes serve the same pair, select one from the list and use its id in subsequent requests. Lists return meta.pagination. For page-based pagination, use page and per_page. The default page size is 25 and the accepted range is 1 to 100. For cursor pagination, send pagination=cursor&sort=id or use sort=-id. While has_more is true, pass meta.pagination.next_cursor as cursor and preserve the filters and sorting.

3. Read form fields and permissions

Requests
details requires public-api:exchange:routes:read. capabilities accepts that scope or public-api:exchange:capabilities:read. For each operation in capabilities.actions, available shows whether the route supports it and authorized confirms the current key has permission. Check both before showing the action. Run preflight to check the completed form and current conditions before creating the order. If you only know the currencies, call /routes/3/4/details or /routes/3/4/capabilities. You can also get details with GET /api/v3/private/exchange/routes/details?from_currency_id=3&to_currency_id=4. These methods return HTTP 404 when there is no match. An ambiguous match returns HTTP 422 with a route_id error. List routes filtered by both currencies and choose a specific route.

Show limits and the available reserve

Read limits.min_give, limits.max_give, limits.min_receive, and limits.max_receive from the route summary. An unset general limit is returned as "0". For very small limits, keep in mind that the response format preserves up to 18 decimal digits. A selected city or a card-verification option can have different limits. Check the amount with preflight. When the route uses its own reserve, its details can include result.operation.attributes.reserve_value. Show this balance as an estimate. The exchange checks reserve availability and configured limits again when creating the order. If preflight returns reserve_insufficient or reserve_limit_exceeded in validation_issues, offer to change the amount, select another route, or try again later. Set the amount field’s precision from the currency’s precision.amount_decimal or the route’s from.decimal and to.decimal. If the details include operation.attributes.multiplicity, use multiplicity_amount and multiplicity_comment to show an amount-increment hint. multiplicity_type: 1 applies to the amount sent and 2 to the amount received.

Quote an exchange

Send the route ID and amount.

Files and verification

Upload required files and read the verification requirements.