fbpay
  1. Exchange Currency
fbpay
  • Transaction finished Webhook
  • Web Widget Copy
  • Terms of Use
  • Privacy policy
  • Api
    • Supported currencies
      • Supported fiat currencies
      • Supported cryptocurrencies
    • Exchange Currency
      • Get exchange rate
        POST
      • Get cached exchange rate
        GET
  1. Exchange Currency

Get cached exchange rate

Developing
GET
https://api.fbpay.cc/v1/cached_rate/{nonce}

Get cached redemption results#

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
nonce
string 
required
The nonce value obtained from the rate interface
Example:
6a2fa04a9ca080af7ead130c849c624b

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 GET 'https://api.fbpay.cc/v1/cached_rate/6a2fa04a9ca080af7ead130c849c624b'

Responses

🟢200成功
application/json
Body
success
boolean 
required
data
object 
required
from
object 
required
to
object 
required
net_fee
object 
required
fee
object 
required
nonce
string 
令牌
required
message
string 
required
Example
{
    "success": true,
    "data": {
        "from": {
            "amount": 888,
            "currency": "hkd"
        },
        "to": {
            "amount": 0.4284,
            "currency": "bnb"
        },
        "net_fee": {
            "total_price": 0.48,
            "amount": 238392769856501.34,
            "currency": "hkd"
        },
        "fee": {
            "amount": 27.53,
            "currency": "hkd"
        },
        "nonce": "5c06a8627d084aa79b038a03d5bb33a5"
    },
    "message": "Pay 888 hkd get 0.4284 bnb"
}
Previous
Get exchange rate
Built with