KashierDevelopersKashier Developers

Calculate the fee on an amount

curl -X GET "https://test-api.kashier.io/v2/payment-fees/calculate?amount=string&interactionSource=POS"
{  "amount": 100,  "fees": 5,  "totalAmount": 105,  "currency": "EGP",  "interactionSource": "ECOMMERCE"}

Works out the processing fee for an amount under the merchant's pricing model and returns the total the customer would be charged. Use it when fees are passed on to the customer, so your checkout can show the fee as its own line and the grand total before the payment is created.

Authorization

secretKey
Authorization<token>

Merchant secret key used to identify the merchant, obtained from Kashier's dashboard. Pass the raw secret key value in the Authorization header (NOT a "Bearer" token).

In: header

Query Parameters

amount*string

The transaction amount to calculate the fee on. Example: 100.00

interactionSource*string

Where the payment is being taken, since fees differ by channel.

Value in

  • "POS"
  • "ECOMMERCE"
apiVersion?string

API version to calculate against.

Response Body

application/json

application/json

application/json

application/json

application/json

GET
/v2/payment-fees/calculate