Skip to main content
GET
Calculate Payment Processing Cost
The cost is calculated for the amount you pass, and includes the amount added when donorCoverCosts is true.
Call it before Process a Donation Payment to show a donor what covering fees would add to their gift.
The spec does not document error responses for this endpoint beyond 401, so the causes aren’t listed with the responses here. Errors still arrive in the ProblemDetails envelope the rest of the Raise API uses — handle a rejected request (400), and a path ID that doesn’t resolve (404), as you would on any other endpoint.

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"

Path Parameters

organizationId
integer<int64>
required

The organization identifier.

Query Parameters

GatewayId
integer<int64>
required

The ID of the payment gateway the donation would be processed through.

Amount
number<double>
required

The donation amount to calculate the cost for.

CreditCardType
string

The card brand the donor would pay with, for example Visa or Mastercard. Rates can differ by brand.

CreditCardCountry
string

The two-letter country code the card was issued in. Rates can differ for cards issued outside the organization's country.

PaymentMethodId
string

The ID of the payment method the donor would pay with, when one has already been created.

PaymentMethodType
enum<integer>

The type of payment method the donor would pay with, for example CreditCard or ACH.

Available options:
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
DonorCoverCosts
boolean

When true, the response includes the amount that would be added to the gift for the donor to cover the processing cost.

CurrencyCode
string

The three-letter ISO currency code of the amount. Defaults to the organization's currency.

Response

OK

Last modified on July 28, 2026