---
title: "Calculate card payment fees"
method: POST
path: "/checkout/payment-methods/{card_id}/fees"
tags: ["Checkout"]
---

# Calculate card payment fees

`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`
- TypeScript: <https://skmtc.dev/alternativepayments/apis/alternative-payments/docs/checkout/payment-methods/:card_id/fees/post.ts> (a function with typed inputs; its response is checked against the schema)

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

## Path parameters

- `card_id` string, required

## Request body

- CheckoutGetCardPaymentFeesRequest: Request body for calculating card payment fees
  - `amount` string
  - `currency` 'USD' | 'CAD'

## Response `200`

OK

- CheckoutGetCardPaymentFeesResponse: Response containing calculated payment fees for card payments
  - `fee_percentage_for_customer` string
  - `fee_percentage_for_partner` string
  - `fixed_fee_amount_customer` string
  - `fixed_fee_amount_partner` string
  - `relative_fee_amount_customer` string
  - `relative_fee_amount_partner` string

## Other responses

- `400`: Bad Request
- `404`: Not Found

## Changes

- **2026-10-07** `4e3a31effa3f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/alternativepayments/apis/alternative-payments/changes/checkout/payment-methods/:card_id/fees/post.md)

---

[API](https://skmtc.dev/alternativepayments/apis/alternative-payments.md) - [All operations](https://skmtc.dev/alternativepayments/apis/alternative-payments/llms.txt) - [OpenAPI document](https://skmtc.dev/alternativepayments/apis/alternative-payments/revisions/281251358a5b?raw)
