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 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
The transaction amount to calculate the fee on. Example: 100.00
Where the payment is being taken, since fees differ by channel.
Value in
- "POS"
- "ECOMMERCE"
API version to calculate against.
Response Body
application/json
application/json
application/json
application/json
application/json
Get one bank's installment fees GET
Retrieves the fee charged per plan duration for a single bank on the merchant account, so a checkout can show the customer what each instalment length costs. The bank is addressed by its abbreviati…
Calculate a discount and the fee together POST
Given an amount and a discount, returns the fee, the discount taken off, and the final amount the customer pays. Unauthenticated so a checkout page can call it while the customer is still choosing…