Skip to main content
POST
Calculate fees

Authorizations

api-key
string
header
required

Headers

Melio-Entity-Id
string
required

Entity the request operates on — an entity id (ent_<uuid>) or me (the partner's sole entity).

Body

application/json
originatingAccountId
string
required

Internal originating account id (acct_), the debit account

receivingAccountId
string
required

External receiving account id (acct_), the credit account

deliveryPreference
enum<string>
required

The delivery preference to price. Its rail must match the receiving account; the normal-speed values (standard-ach, standard-check, domestic-wire, virtual-card) price that rail at normal speed.

Available options:
standard-ach,
same-day-ach,
rtp,
standard-check,
express-check,
overnight-check,
domestic-wire,
instant-domestic-wire,
virtual-card,
instant-virtual-card
amount
integer
required

The payment amount to price, in minor units (cents).

currency
string
default:USD

Response

Calculated fees.

type
string
required

The fee category (e.g. ach, card, expedited-ach).

chargeTo
enum<string>
required

Which side of the payment the fee is levied on: the account originating the payment or the account receiving it. Works for both estimated (calculator) and applied (payment) fees.

Available options:
originator,
receiver
fixed
object

Present when the fee is a flat amount.

percent
object

Present when the fee is a percentage of the payment amount.

amount
integer

The resolved fee for the requested payment amount, in minor units (cents). Absent only when the fee cannot be resolved without a per-payment quote (e.g. tiered pricing).