1. Currency Exchange
Partner API
  • Getting Started
    • Introduction
    • Authentication
    • Business Use Cases
  • API References
    • Partner Operations
      • Balances & History
        • Get Balances
        • Get Balance History
      • Crypto Deposits
        • Get Crypto Deposit Details
      • Crypto Withdrawal
        • Create Crypto Withdrawal
        • Get Crypto Withdrawal Details
      • Currency Exchange
        • Get Rates
          GET
        • Create Lock
          POST
        • Create Exchange
          POST
        • Get Exchange Details
          GET
      • SEPA Deposit
        • Get SEPA Deposit Details
        • Get SEPA Deposit Info
      • SEPA Withdrawal
        • Create a SEPA Withdrawal
        • Get SEPA Withdrawal Details
  • Integration
    • SDKs & Integration Guides
    • Transaction Processing
    • Error Handling
    • Rate Limiting
    • Webhooks
      • Transaction Webhooks
        • Crypto Deposit Webhook
        • Crypto Withdrawal Webhook
        • Exchange Webhook
        • SEPA Deposit Webhook
        • SEPA Withdrawal Webhook
  • Reference
    • Supported Currencies
    • Fees
    • FAQ
    • Changelog
    • Support
  1. Currency Exchange

Create Exchange

Testing Env
https://stage-api.fintegence.io
Testing Env
https://stage-api.fintegence.io
POST
/v1/partner/exchange
Executes a currency exchange between two supported assets using a pre-established rate lock.
You must provide a valid rate lock ID (obtained via Retrieve Exchange Rate and Create a Lock) to execute the transaction at the guaranteed rate. Currency codes (currencyFrom, currencyTo) should be provided as uppercase tickers.

Asynchronous Workflow#

The exchange process is asynchronous and follows these steps:
1.
Create a Rate Lock: Call Retrieve Exchange Rate and Create a Lock to obtain a valid lockId.
2.
Execute the Exchange: Submit this request with the lockId, exchange amount, and target currency pair. The system validates the request structure and immediately returns a unique transactionId.
3.
Track Status: Monitor the transaction until it reaches a terminal status (successful or unsuccessful):
Listen for real-time updates via the Exchange Webhook.
Poll Retrieve Exchange Details using the returned transactionId or your externalId.
Asynchronous Processing
Business logic checks (such as available balance verification) are performed asynchronously during execution.
A 200 OK response indicates that the request was successfully queued. Always verify the final outcome via webhooks or by querying Retrieve Exchange Details.

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
Bodyapplication/json

🟠401Access Denied
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://stage-api.fintegence.io/v1/partner/exchange' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "amount": 10,
    "currencyFrom": "DOGE",
    "currencyTo": "EUR",
    "lockId": "9c61a20a-824c-4025-827b-d4b7dd0de826"
}'
Response Response Example
201 - Success
{
    "transactionId": "3f0aeaa7-1177-4d77-9985-0cb987809801"
}
Previous
Create Lock
Next
Get Exchange Details
Built with