This returns the Trustap fee, in the currency's smallest unit, for a transaction involving goods with the supplied price. See the Stripe documentation for more details.
Represents an additional charge to be paid by the buyer added to the transaction total. Use this field to include costs like processing fees, local taxes, or shipping surcharges. 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.
- OAuth2
- APIKey
curl -i -X GET \
'https://dev.stage.trustap.com/api/v1/p2p/charge?currency=string&price=0&price_extra=0&price_postage=0&fee_multiplier=0.1&quantity=0&payment_method=string&charge_config=1' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'OK
The Trustap fee that the buyer will pay, in the currency's smallest unit, for a queried amount. See the Stripe documentation for more details.
The portion of the buyer's fee that is attributed to the client, in the currency's smallest unit.
The version of the Trustap charge calculator that was used to calculate this charge.
This property is present for error-handling purposes. The Trustap API allows apps and users to query how much Trustap will charge for a transaction before creating a transaction. Trustap then requires the queried charge to be provided when creating a transaction or listing. At this point the charge is calculated again and checked against the provided charge, to ensure that the charge calculated for the new resource is the same as the one shown to the user. In the unlikely event that the Trustap charge calculator used to calculate the charge has been updated, then the charge_calculator_version property will be used to return an incorrect_calc_version to the API client, which will indicate that the /charge endpoint should be queried again to get the newest charge value.
The Trustap fee that the seller will pay, in the currency's smallest unit, for a queried amount. See the Stripe documentation for more details.
The portion of the seller's fee that is attributed to the client, in the currency's smallest unit.
Represents an additional charge to be paid by the buyer added to the transaction total. Use this field to include costs like processing fees, local taxes, or shipping surcharges. 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.
{ "charge": 78, "charge_buyer_client": 0, "charge_calculator_version": 5, "charge_config": 1, "charge_seller": 0, "charge_seller_client": 0, "currency": "eur", "payment_method": "card", "price": 1234, "price_extra": 0 }