Payment-Gateway-OpenApi
  1. Pelago Direct Mode
Payment-Gateway-OpenApi
  • Getting Started
  • Fiat Collection
    • Overview
    • Pelago Cashier Mode
      • Cashier Mode Introduction
      • Create Pelago Order
    • Pelago Direct Mode
      • Direct Mode Introduction
      • Get Rate
        POST
      • Get Product
        POST
      • Create Order
        POST
      • Get Order Info
        POST
      • Order Notify
        POST
  • Crypto Collection
    • Overview
    • Create Order
      POST
    • Refund
      POST
    • Withdraw
      POST
  • Common Collection
    • Check Order Info
      POST
  1. Pelago Direct Mode

Get Rate

POST
/openapi/fiat/getRate
openapi-法币订单API

Request

Authorization
Add parameter in header
Merchant-App-Key
Example:
Merchant-App-Key: ********************
Header Params
X-App-Key
string 
required
Body Params application/json
baseCurrency
string 
required
targetCurrency
string 
required
Example
{
    "baseCurrency": "string",
    "targetCurrency": "string"
}

Request 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 'http://prod-cn.your-api-server.com/openapi/fiat/getRate' \
--header 'X-App-Key;' \
--header 'Content-Type: application/json' \
--header 'Merchant-App-Key;' \
--data-raw '{
    "baseCurrency": "string",
    "targetCurrency": "string"
}'

Responses

🟢200OK
*/*
OK
Body
code
integer <int32>
optional
data
object (OpenApiRateResDTO) 
optional
baseCurrency
string 
optional
targetCurrency
string 
optional
applicationRate
number 
optional
msg
string 
optional
Example
{
    "code": 0,
    "data": {
        "baseCurrency": "string",
        "targetCurrency": "string",
        "applicationRate": 0
    },
    "msg": "string"
}
Modified at 2025-04-07 00:00:10
Previous
Direct Mode Introduction
Next
Get Product
Built with