Checkout

Calculate card payment fees

Calculate payment fees for a specific card payment method using checkout token

post/checkout/v1/payment-methods/{card_id}/fees

Path parameters

card_idstring required

Card ID

Request body

amountstring
currency'USD' | 'CAD'

Example request

{
  "amount": "100.00",
  "currency": "USD"
}

Response

OK

fee_percentage_for_customerstring
fee_percentage_for_partnerstring
fixed_fee_amount_customerstring
fixed_fee_amount_partnerstring
relative_fee_amount_customerstring
relative_fee_amount_partnerstring

Example response

{
  "fee_percentage_for_customer": "2.50",
  "fee_percentage_for_partner": "1.50",
  "fixed_fee_amount_customer": "0.50",
  "fixed_fee_amount_partner": "0.25",
  "relative_fee_amount_customer": "2.50",
  "relative_fee_amount_partner": "1.50"
}