API Reference

Get applicable surcharge

GET/applicable_surcharge

Query Parameters

panstring

The card number of the debit or credit card

amountinteger (int32)

Amount to be surcharged in the smallest currency unit

currencystring

Currency of the amount to be surcharged

Request

curl
curl https://gateway.pmnts-sandbox.io/v1.0/applicable_surcharge?pan=4242424242424242&amount=100&currency=AUD -u TEST:TEST

Response

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
}