v1

latestOpenAPI 3.0.02026-08-06202761.2 KB
Payment

Get the Trustap fee for a transaction

This returns the Trustap fee, in the currency's smallest unit, for a transaction involving goods with the supplied amount. See the Stripe documentation for more details.

get/v2/fees

Query parameters

currencystring currency required

The currency that the amount is specified in.

amountinteger required

The price of the goods being sold in this transaction, in the currency's smallest unit. For example, if a trading card is being sold for $12.34 (with currency as usd), then the request for the fees for this transaction would be /v2/fees?amount=1234&currency=usd.

amount_extrainteger

Represents an additional charge to be paid by the buyer added to the transaction total. Use this field to include costs like processing fees or local taxes. Must be an integer provided in the smallest unit of the currency (for example, 500 for $5.00 USD). Defaults to 0 if not provided.

amount_postageinteger

Represents an additional charge to be paid by the buyer, seller or client. Use this field to include costs like shipping surcharges. Must be an integer provided in the smallest unit of the currency (for example, 500 for $5.00 USD).

payment_methodstring

The payment method that will be used to pay for the transaction. This is necessary because different payment methods may result in different fees. Supports card and bank_transfer.

The default value is card.

fees_configinteger

The fee config for which the fees are computed.

Response

OK

buyerinteger required
configinteger required
sellerinteger required

Example response

{
  "buyer": 78,
  "config": 1,
  "seller": 0
}