Partner API
  1. Currency Exchange
Partner API
  • Getting Started
    • Introduction
    • Authentication
    • Business Use Cases
  • API References
    • Partner Operations
      • Get Balances
      • Get Transaction History
      • Retrieve Exchange Rate and Create a Lock
      • Create and Finalize an Exchange
      • Create Crypto Withdrawal
      • Create a SEPA Transfer
      • Get SEPA Transfer Details
    • User Accounts with KYC
      • Create User Account and Generate Balances
      • Add KYC File
      • Add POA File
      • Add User Verification
      • Update Existing User
      • Delete User
      • Suspend User
      • Unsuspend User
      • Get User Balances
      • Get User Transaction History
    • User Accounts without KYC
      • Create User Account and Generate Balances Without KYC
      • Update Existing User
      • Delete User
      • Suspend User
      • Unsuspend User
      • Get User Balances
      • Get User Transaction History
    • KYC by P100
      • Creating KYC Verification
      • Redirect to Verification
      • Get KYC Status
    • Currency Exchange
      • Retrieve Exchange Rate
        GET
      • Retrieve Exchange Rate and Create a Lock
        GET
      • Create and Finalize an Exchange
        POST
      • Retrieve Detailed Exchange Infromation
        GET
    • Crypto Deposits
      • Update Travel Rule
    • Crypto Withdrawals
      • Get Network Fee
      • Create Crypto Withdrawal
      • Get Crypto Withdrawal Details
    • 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
    • Custom Fiat Operations
      • SEPA Deposit & Withdrawal
  • Integration
    • SDKs & Integration Guides
    • Transaction Processing
    • Error Handling
    • Rate Limiting
    • Webhooks
      • User & KYC Webhooks
        • User Balance Generation
        • KYC File Added
        • POA Verification Status
        • KYC Verification Status
      • Transfers & Payments Webhooks
        • P2P Transfer Webhook
        • SEPA Transfer
        • SEPA Deposit
        • Crypto Withdrawal
        • Crypto Deposit
        • Exchange
        • Card Transaction
      • Card Webhooks
        • Card 3DS Code
        • Card Activation Code
  • Reference
    • Supported Countries
    • Supported Currencies
    • Fees
    • FAQ
    • Changelog
    • Support
  1. Currency Exchange

Retrieve Exchange Rate and Create a Lock

Testing Env
https://partner-api-stage.p100.io
Testing Env
https://partner-api-stage.p100.io
GET
/v1/exchange/get-lock/{externalUserId}
Retrieves the current exchange rates and creates a rate lock for the specified user account. The rate lock is valid for 60 seconds.
This endpoint allows you to both preview the latest exchange rates and reserve (lock) a specific rate for a user-initiated exchange transaction. When called, it returns the current rates for all supported currencies and generates a unique rate lock ID associated with the user specified by externalUserId. This lock guarantees that the quoted rates will remain unchanged for 60 seconds, allowing the user to review and confirm the transaction without risk of rate fluctuation. If the exchange is not finalized within this time window, the lock expires and a new rate must be obtained. Use this endpoint before creating an exchange to ensure the user receives the expected rate, especially in volatile market conditions. The lock ID returned must be provided in the subsequent exchange request to finalize the transaction at the locked rate.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://partner-api-stage.p100.io/v1/exchange/get-lock/' \
--header 'x-api-key;'
Response Response Example
200 - Success
{
    "id": "407ea838-6e41-45ed-ae0f-84fb0f5d3863",
    "rates": {
        "btc": 101970.17793043,
        "doge": 0.20671822,
        "eth": 3329.10789425,
        "eur": 1,
        "ltc": 97.30869146,
        "pol": 0.20288041,
        "usdc": 0.858243,
        "usdt": 0.8582865811608077
    },
    "feePercentage": 1.49,
    "createdAt": "2025-07-28T11:24:46.312Z",
    "validUntil": "2025-07-28T11:25:46.310Z"
}

Request

Authorization
API Key
Add parameter in header
x-api-key
Example:
x-api-key: ********************
or
Path Params

Responses

🟢200Success
application/json
Body

🟠401Access Denied
🟠400P412: User not exist
🟠400P500: Unknown exception
🟠400P501: Service temporarily unavailable
Previous
Retrieve Exchange Rate
Next
Create and Finalize an Exchange
Built with