Payment-Gateway-OpenApi
  1. Pelago Direct Mode
Payment-Gateway-OpenApi
  • Getting Started
  • Fiat Collection
    • Overview
    • Pelago Direct Mode
      • Direct Mode Introduction
      • Get Rate
        POST
      • Order Notify
        POST
  • Crypto Collection
    • Overview
    • Order Notify
      POST
    • Refund
      POST
    • Withdraw
      POST
    • Payout
      POST
  • Common Collection
    • Check Order Info
      POST
  • Crypto For X402
    • Retrieve Supported Payment Methods
      GET
    • Create or Confirm Order
      POST
    • Query Order Status
      GET
  • Obsolete (已废弃)
    • Pelago Cashier Mode
      • Cashier Mode Introduction
      • Create Pelago Order
    • Create Order
      POST
    • Create Order
      POST
    • Get Product
      POST
    • Get Order Info
      POST
  • Create Order (统一下单接口)
    POST
  • Order Query
    GET
  1. Pelago Direct Mode

Get Rate

POST
/openapi/fiat/getRate

Request

Header Params

Body Params application/json

Example
{
    "baseCurrency": "string",
    "targetCurrency": "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 'https://api.pelagotech.com/openapi/fiat/getRate' \
--header 'X-App-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "baseCurrency": "string",
    "targetCurrency": "string"
}'

Responses

🟢200OK
*/*
OK
Body

Example
{
    "code": 0,
    "data": {
        "baseCurrency": "string",
        "targetCurrency": "string",
        "applicationRate": 0
    },
    "msg": "string"
}
Modified at 2026-01-09 07:26:17
Previous
Direct Mode Introduction
Next
Order Notify
Built with