BPN OpenAPI
  1. BPN Transactions
BPN OpenAPI
  • Getting Started
    • Introduction to BPN
    • Key Concepts & Terminology
    • Architecture Overview
  • Onboarding & Prerequisites
    • Product Demo
    • Sandbox & Test Environment
    • Signature Authentication Mechanism
  • Use Case
    • Transfer
    • Vault
    • On/Off Ramp
    • Compliance (Travel Rule Information Submission)
    • Fiat Collection(BRL PIX for example)
  • API Reference
    • Account Management
      • Inquiry Master VA Balance
      • Create Virtaul Account
      • Get Virtual Account Detail
      • List Virtual Account
      • Send Email Verify Code
      • Query bank info by account number
      • Payout via Virtual Account
      • Refund Virtual Account Order
      • Get Virtual Account Order Detail
      • List Virtual Account Orders
      • Submit Invoice
      • Get Invoice list Status
      • List Banks
      • Add Bank Account
      • List Bank Account
      • List RFI Sub Virtual Account
      • Get Sub Virtual Account RFI Template Info
      • Sub Virtual Account Submit RFI
    • Wallet
      • List Wallets
      • List Sub Account
      • Create Sub Account
      • Wallet Internal Transfer
      • Get Asset Balance
      • Get Deposit Address
      • Add Deposit Sender
      • Add Withdraw Whitelist
      • Delete Withdraw Whiltelist
      • Request Withdraw
      • Query Transaction History
    • FX
      • Inquery FX Rate
    • BPN Transactions
      • Get Stablecoin Quote
        POST
      • Create Stable Order
        POST
      • Get Order (Single) Detail
        GET
      • List Orders(Batch)
        GET
    • Reconciliation
      • Get Reconciliation Order List By Page
    • Crypto Payment Link
      • Create Payment Link
      • List Payment links
      • Get Curreny Network Config
    • Mock
      • Mock Virtual account Payin Order
  • Webhooks & Events
    • Resend Fail Webhook
      POST
    • Open Virtual Account Status
    • Virtual Account Payment Status
    • Virtual Account Invoice update
    • Transaction Status Notification
    • KYB Status Notification
    • Deposit Sender Detail Required
  • Appendix
    • Enum
    • Virtual Account(VA) Support List & KYB requirement
  • Release Notes & Changelog
    • Version History
  • Schemas
    • walletBalance
    • walletAddress
    • transactionRecord
  1. BPN Transactions

Get Stablecoin Quote

POST
/v1/stable/order/get-quote
Overview
Retrieve the real-time quote that converts a fiat amount into its stablecoin equivalent (USDC or USDT).
The quote is intended for checkout displays and pre-payment confirmation screens, and it includes a lock window (expiry time) during which the quoted rate is valid.
What it does
• Calculates how much USDC/USDT is required to settle a given fiat amount.
• Returns the stablecoin amount and a price validity period (lock/expiry timestamp).
• Can be used to render “Pay XX USDT for YY BRL” messages to end-users before they pay.

Request

Body Params application/json

Example
{
    "businessType": "STABLE_BUY",
    "paymentMethod": "VIRTUAL_ACCOUNT",
    "sourceCurrency": "MXN",
    "targetCurrency": "USD",
    "sourceAmount": 2000,
    "sourceAccountId": "111",
    "targetAccountId": "111",
    "type": "string"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/stable/order/get-quote' \
--header 'Content-Type: application/json' \
--data-raw '{
    "businessType": "STABLE_BUY",
    "paymentMethod": "VIRTUAL_ACCOUNT",
    "sourceCurrency": "MXN",
    "targetCurrency": "USD",
    "sourceAmount": 2000,
    "sourceAccountId": "111",
    "targetAccountId": "111",
    "type": "string"
}'

Responses

🟢200OK
application/json
Body

Example
{
    "status": 200,
    "code": "string",
    "msg": "string",
    "data": {
        "quoteId": "string",
        "sourceCurrency": "string",
        "targetCurrency": "string",
        "price": 0,
        "sourceAmount": 0,
        "targetAmount": 0,
        "ourFee": 0,
        "ourFeeCurrency": "string",
        "payInFee": 0,
        "payInFeeCurrency": "string",
        "payOutFee": 0,
        "payOutFeeCurrency": "string",
        "expireTime": 0
    },
    "traceId": "string"
}
Previous
Inquery FX Rate
Next
Create Stable Order
Built with