Checkout

Calculate card payment fees

Changed on

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

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

Request

  • Base URL: https://public-api.alternativepayments.io
  • URL: https://public-api.alternativepayments.io/checkout/payment-methods/{card_id}/fees
  • Auth: API key in header Authorization

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"
}

Changes