API Reference
Get applicable surcharge
GET
/applicable_surchargeQuery Parameters
panstringThe card number of the debit or credit card
amountinteger (int32)Amount to be surcharged in the smallest currency unit
currencystringCurrency of the amount to be surcharged
Request
curl
curl https://gateway.pmnts-sandbox.io/v1.0/applicable_surcharge?pan=4242424242424242&amount=100¤cy=AUD -u TEST:TESTResponse
200Result
json
{
"successful": true,
"response": {
"card_description": "credit",
"surcharge_amount": 1,
"surcharge_amount_description": "0.9%",
"total_amount": 101
},
"errors": [],
"test": true
}400Result
json
{
"successful": false,
"response": null,
"errors": [
"invalid pan"
],
"test": true
}