Partner API
  1. Orders
Partner API
  • Getting Started
    • Introduction
    • Authentication
    • Business Use Cases
  • API References
    • Partner Operations
      • Get Balances
      • Create Wallet
      • Get Transaction History
      • Retrieve Exchange Rate and Create a Lock
      • Create and Finalize an Exchange
      • Retrieve Detailed Exchange Infromation
      • Create Crypto Withdrawal
      • Get Crypto Withdrawal Details
      • Create a SEPA Transfer
      • Get SEPA Transfer Details
    • User Accounts
      • Create User Account
      • Add KYC File
      • Add POA File
      • Add User Verification
      • Extend user
      • 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
      • Retrieve Exchange Rate and Create a Lock
      • Create and Finalize an Exchange
      • Retrieve Detailed Exchange Infromation
    • 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
    • Orders
      • Get Rates
        GET
      • Retrieve Order Rate and Create a Lock
        POST
      • Create and Finalize an Order
        POST
      • Get Order Details
        GET
    • Payment link
      • Generate Payment Link
      • Get Payment Link Details
  • 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
        • Create wallet
      • Transfers & Payments Webhooks
        • P2P Transfer Webhook
        • SEPA Transfer
        • SEPA Deposit
        • Crypto Withdrawal
        • Crypto Deposit
        • Exchange
        • Card Transaction
        • Order status
        • Payment Link
      • Card Webhooks
        • Card 3DS Code
        • Card Activation Code
  • Reference
    • Supported Countries
    • Supported Currencies
    • Fees
    • FAQ
    • Changelog
    • Support
  1. Orders

Retrieve Order Rate and Create a Lock

Testing Env
https://partner-api-stage.p100.io
Testing Env
https://partner-api-stage.p100.io
POST
/v1/order/lock-rate
Locks the exchange rate for a specified fiat currency amount (e.g., EUR) and a chosen cryptocurrency.
Call this endpoint when you are ready to initiate a payment. The response will provide a unique identifier (lockId), which is valid for a limited time and must be used to place an order. The response also includes the exact amount of cryptocurrency the user will receive at the locked rate.
For a list of available currencies, see Supported Currencies.
If you only need to check the current rates without creating a lock, use the Get Rates endpoint instead.

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

🟠400P403: Validation error
🟠400P500: Unknown exception
🟠400P501: Service temporarily unavailable
🟠401Access Denied
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://partner-api-stage.p100.io/v1/order/lock-rate' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "currency": "usdc",
    "amount": "346.59",
    "network": "polygon"
}'
Response Response Example
201 - Success
{
    "lockId": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
    "rate": 0.9245,
    "amount": 92.45,
    "expiresAt": "2025-09-23T06:55:40Z",
    "cryptocurrency": "usdc",
    "network": "polygon"
}
Previous
Get Rates
Next
Create and Finalize an Order
Built with