Skip to content
API reference

Swap balance to USD

Convert a local-currency balance into USD. Required before withdrawing if your shop settles in local currency.

POST/api/v1/me/balance/swap
Step-by-step guideStep 1 of 3

Select a stage to see what happens.

Your integration
Request readyIllustrative example
GET/me/balance/swap
Authorization
Bearer ••••••••
Accept
application/json

Prepare the request

Use credentials for the selected environment and complete the required parameters.

Illustrative flow · no data is sent

How this endpoint works

Live quote for converting part of your pay-in balance from a local currency into USD. **The money, exactly.** `rate` is the EFFECTIVE rate — our FX margin is already inside it — so `amountUsd = amount × rate`, full stop. There is no fee line to subtract, no second conversion, and the charge that produced this local balance carried no FX margin either: the margin is taken once, here. A quote is indicative. The rate is read again when you execute, so the executed amount can differ slightly.

Server-side authentication
Authentication guide
Key2Pay Developer documentationAPI v1
Documentation
Dashboard