Skip to main content

Exchange Rate

Request

API URL: /merchant/rate

HeaderContentDescription
Content-Typetext/plain
Authorization{token_type} {access_token}Concat token_type and access_token with whitespace.
ParamTypeRequiredSignDescription
user_idStringMerchant identification
trade_currencyStringPlease refer to Currencies & Channels
signStringSignature string

Response

ParamTypeRequiredSignDescription
user_idStringMerchant identification
trade_currencyStringPlease refer to Currencies & Channels
{currency}ArrayOther currencies and rates provide by PTS.
signStringSignature string
// Example
{
"code": "1000",
"message": "Accepted",
"data": {
"user_id": "1",
"trade_currency": "PHP",
"USD": {
"payment": 55.07,
"withdraw": 55.09
},
"sign": "n8g5tDELHuzLNX9tmqLA3O1aT6hnNti64..."
}
}
Explanation

In example above, it means you can exchange 1 USD by 55.07 PHP in payment transaction, and exchange 1 USD by 55.09 in withdraw transaction.