Exchange Rate
Request
API URL: /merchant/rate
Header | Content | Description |
---|---|---|
Content-Type | text/plain | |
Authorization | {token_type} {access_token} | Concat token_type and access_token with whitespace. |
Param | Type | Required | Sign | Description |
---|---|---|---|---|
user_id | String | ✅ | ✅ | Merchant identification |
trade_currency | String | ✅ | ✅ | Please refer to Currencies & Channels |
sign | String | ✅ | ❌ | Signature string |
Response
Param | Type | Required | Sign | Description |
---|---|---|---|---|
user_id | String | ✅ | ✅ | Merchant identification |
trade_currency | String | ✅ | ✅ | Please refer to Currencies & Channels |
{currency} | Array | ❌ | ❌ | Other currencies and rates provide by PTS. |
sign | String | ✅ | ❌ | Signature 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.