Checkout
Calculate card payment fees
Changed onCalculate 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
Example request
{
"amount": "100.00",
"currency": "USD"
}Response
OK
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
- ○
endpoint added
- ○