Partner API
test
  • latest
  • test
  1. Exchange Operations
Partner API
test
  • latest
  • test
  • Getting Started
    • Introduction
    • Authentication
    • Business Use Cases
  • API References
    • Partner Operations
      • Balances & Transaction History
        • Get Balances
        • Get Transaction History
        • Create Wallet
        • Create transfer master balance
      • Exchange Operations
        • Retrieve Exchange Rate
          GET
        • Create and Finalize an Exchange
          POST
        • Retrieve Detailed Exchange Information
          GET
        • Retrieve Exchange Rate and Create a Lock
          GET
      • SEPA Transfers
      • Crypto Deposits
        • Update Travel Rule
      • Crypto Withdrawal
        • Get Crypto Withdrawal Details
        • Create Crypto Withdrawal
      • Orders
        • Retrieve Order Rate and Create a Lock
        • Create and Finalize an Order
        • Get Order Details
        • Get Rates
      • Payment link
        • Generate Payment Link
        • Get Payment Link Details
    • User Operations
      • Onboarding & KYC Flow
        • Create User Account
        • Method A: Add KYC File
        • Method B: Creating KYC Verification
        • Method B: Redirect to Verification
        • Method B: Get KYC Status
        • Add User Verification
        • Add POA File
      • Account Management
        • Update Existing User
        • Delete User
        • Suspend User
        • Unsuspend User
      • Balances & Transaction History
        • Get User Balances
        • Get User Transaction History
      • Currency Exchange
        • Retrieve Exchange Rate
        • Retrieve Exchange Rate and Create a Lock
        • Create and Finalize an Exchange
        • Retrieve Detailed Exchange Information
      • Internal Transfers
        • Create a Transfer
        • Get Transfer Details
      • Virtual Cards
        • Create Virtual Card
        • Get All User Cards
        • Get Card Details
        • Update Card PIN
        • Block Card
        • Unblock Card
        • Get Card Limits
        • Update Card Limits
        • Delete Card
      • Crypto Deposits
        • Update Travel Rule
      • Crypto Withdrawals
        • Get Network Fee
        • Create Crypto Withdrawal
        • Get Crypto Withdrawal Details
      • SEPA Transfers Copy
  • Integration
    • SDKs & Integration Guides
    • Transaction Processing
    • Error Handling
    • Rate Limiting
    • Webhooks
      • User & KYC Webhooks
        • User Balance Generation Webhook
        • KYC File Added Webhook
        • POA Verification Status Webhook
        • KYC Verification Status Webhook
        • Create Wallet Webhook
      • Transfers & Payments Webhooks
        • P2P Transfer Webhook
        • SEPA Transfer Webhook
        • SEPA Deposit Webhook
        • Crypto Withdrawal Webhook
        • Crypto Deposit Webhook
        • Exchange Webhook
        • Card Transaction Webhook
        • Order status Webhook
        • Payment Link Webhook
      • Card Webhooks
        • Card 3DS Code Webhook
        • Card Activation Code Webhook
  • Reference
    • Supported Countries
    • Supported Currencies
    • Fees
    • FAQ
    • Changelog
    • Support
  1. Exchange Operations

Create and Finalize an Exchange

Testing Env
https://partner-api-stage.p100.io
Testing Env
https://partner-api-stage.p100.io
POST
/v1/partner/exchange
Executes a currency exchange using a pre-established rate lock.
This endpoint converts a specified amount from a source currency to a target currency at a guaranteed rate. A full list of available currency pairs can be found in the Supported Currencies guide.

Asynchronous Workflow#

The exchange process is asynchronous and requires the following steps:
1.
Create a Rate Lock: You must first call the POST /exchange/lock endpoint to obtain a valid rateLockId. This ID is mandatory to execute the exchange at the locked rate.
2.
Execute the Exchange: Call this endpoint (POST /exchange/execute) with the rateLockId and transaction details. The system validates the request, reserves the funds, and immediately returns an exchangeId.
3.
Track Transaction Status: To determine the final status of the transaction (e.g., completed or failed), you can:
Listen for an automated webhook notification sent to your configured endpoint.
Poll the GET /exchange/{exchangeId} endpoint at any time using the exchangeId.

Business logic errors (such as insufficient funds) are not checked at this stage. Processing occurs asynchronously. Use the Get Transfer Details endpoint to verify the final status and any errors.

Request

Authorization
API Key
Add parameter in header
x-api-key
Example:
x-api-key: ********************
or
Body Params application/json

Examples

Responses

🟢201Created
application/json
Body

🟠401Access Denied
🟠400P403: Validation error
🟠400P432: Invalid Exchange Lock
🟠400P457: Currencies cannot be the same
🟠400P500: Unknown exception
🟠400P501: Service temporarily unavailable
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://partner-api-stage.p100.io/v1/partner/exchange' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "amount": 10,
  "currencyFrom": "eth",
  "currencyTo": "eur",
  "lockId": "ee7b2f0f-0ffb-4fce-8fb3-66db2ca1f461"
}'
Response Response Example
201 - Success
{
    "exchangeId": "3f0aeaa7-1177-4d77-9985-0cb987809801"
}
Previous
Retrieve Exchange Rate
Next
Retrieve Detailed Exchange Information
Built with