Get_Rate
Corporate Customers can use this method to retrieve the Tranglo Business quoted forex rate.
Definition
GET/api/wallets/{Account_ID}/rates
Sample Request
| curl -X GET "{{base_URL}}/api/wallet/{{Account_ID}}/rates?Currency_To=php" \ -H "Authorization: Bearer <your_access_token>" \ -H "Content-Type: application/json" |
Request Description
| Parameter Name | Required | Min/Max Length | Type | Remark |
| Authorization | M | Bearer <jwt-token> | String | |
| Account_ID | M | 15/15 | String | Sales Partner’s Wallet Account ID. |
| Currency_From | M | 3/6 | Char | ISO 4217 Currency Code (Sell) |
| Currency_To | M | 3/6 | Char | ISO 4217 Currency Code (Buy) |
Sample Response
| HTTP 200 OK { "Currency_From": "USD", "Currency_To": "MYR", "Currency_Rate": 4.2, "FR_Key": "" } |
Response Description
| Parameter | Data Type | Required | Description |
| Currency_From | Char | M | Currency From (Sell) |
| Currency_To | Char | M | Currency To (Buy) |
| Currency_Rate | Numeric | M | The exchange rate according to currency pair. |
| FR_Key | String | O | FR key for future use. |
M = Mandatory, C = Conditional, O = Optional