Fee: Get Transaction Fee
RSP can use this method to get fee that will be deduct for each transaction base on various currency and transaction amount.
Definition:
GET /v1/payments/fees?bAccType={bAccType}&currFrom={currFrom}&currTo={currTo}&trxValue={trxValue}&bIssuercode={bIssuercode}&bCountry={bCountry}
Sample Request:
curl -v "http://staging-gloremit.tranglo.com:2014/v1/payments/fees?bAccType=1&currFrom=MYR&currTo=IDR&trxValue=1000&bIssuercode=002&bCountry=ID" \
-H "Authorization: GLOREMIT <UID>:<PWD>:<rspSign>"
Request Description
Parameter Name | Required | Min/Max Length | Type | Remark |
UID | M | 5/50 | Alphanumeric | Username for validation. |
PWD | M | 5/50 | Alphanumeric | Password for validation, 3DES encrypted. |
bAccType | M | 1/30 | Numeric | Beneficiary Account Type. (Please refer to Beneficiary) |
currFrom | M | 3/6 | Alphanumeric | ISO 4217 Currency Code. (Sell) |
currTo | M | 3/6 | Alphanumeric | ISO 4217 Currency Code. (Buy) |
trxValue | M | 1/16 | Numeric | Total Amount is sent according to Beneficiary currency. It can be specified with any amount. |
bIssuerCode | O | 3/16 | Alphanumeric | Beneficiary Account Issuer Code, such as banks, e-wallet operator or mobile operators. (Please refer to Service Spec) |
bCountry | O | 2/5 | Alphanumeric | Beneficiary’s Country. (Country value serves as identity purpose only. It has no impact on Sender or Beneficiary currency used.) Accept ISO 3166-1 Alpha-2 ONLY (Please refer to ISO 3166 Country Code) |
Response Description
Sample Response:
{ "CurrencyCode":"MYR", "TrxFee":"5", "Status":"null", "Description":"null" }
Parameter Name | Required | Type | Remark |
CurrencyCode | M | Alphanumeric | Wallet currency will be deduct. |
TrxFee | M | AlphaNumeric | Fee amount will be deduct. |
Status | M | Numeric | Transaction status response code. (Please refer to Transaction status) |
Description | M | AlphaNumeric | Transaction description or advice. |
M= Mandatory, C= Conditional, O= Optional