Retrieve a payment fee summary
Returns the fees on a payment added up, fixed and percentage apart, per currency. Secret and trusted tokens that may read fees only; any other token gets 401.
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
payment_id*stringThe id of the payment.
show?stringComma-separated fields to return; all others are left out. Use dot notation for child fields (customer.email). You cannot send show and hide together (400). See Customizing output.
hide?stringComma-separated fields to leave out of the response. Use dot notation for child fields (customer.email). You cannot send show and hide together (400). See Customizing output.
formatted?booleanWhen true, the object also has a formatted child with amounts and dates as display text in the shopper's language and currency (for example $19.99 or November 7, 2026). The default is false. See Localized formatting.
falseThe fee summary.
application/json- response
The fees charged on a payment, added up. Each currency's sums are kept apart in totals; the top-level amounts are those of the first currency.
object*"fee_summary"The object type. Always fee_summary.
"fee_summary"url*|The full URL of the summary. Null when the payment has no fees yet.
urifixed_amount*numberThe sum of fixed fees, in currency.
percentage_amount*numberThe sum of percentage fees, in currency.
total*numberAll fees, in currency.
currency*|The currency of the top-level amounts. Null when there are no fees.
totals*array<>The sums for each currency, the top-level currency first.
formatted?The amounts as display strings. Only present with formatted=true.
curl -X GET 'https://api.comecero.com/api/v1/payments/string/fee_summary'{ "object": "fee_summary", "url": "https://api.comecero.com/api/v1/payments/0090460891496PyrYzd9DC/fee_summary", "fixed_amount": 0.3, "percentage_amount": 6.23, "total": 6.53, "currency": "USD", "totals": [ { "currency": "USD", "fixed_amount": 0.3, "percentage_amount": 6.23, "total": 6.53 } ]}Commit a payment POST
Finishes an `initiated` payment once the shopper has done their step: approved at PayPal or Amazon Pay, passed a 3-D Secure check, or confirmed in Stripe.js. The amounts are worked out again from the cart or invoice first, so a changed shipping or tax is charged. On success the cart or invoice closes, the order is made, events fire and the receipt goes out. If a PayPal total went up too much since approval, the payment stays `initiated` with a new `response_data.redirect_url` for the buyer to approve again. Two commits at once (the shopper's browser and the provider's webhook) run one after the other, and the second gets the first one's result. A payment that is already `pending` comes back as it is. A `completed` or `cancelled` payment is `422`. The Comecero-hosted 3-D Secure page commits the payment itself, so get the payment first and commit only while it is `initiated`. Any token type may call it, a limited token too, for any payment of the account: a shopper may come back in another browser. A limited token that is not bound to the payment gets only `object`, `payment_id`, `success`, `status`, `payment_method.type` and `response_data.redirect_url`. A token that may not create or update payments gets `401`. The body is optional.
List payment fees GET
Lists the fees charged on a payment. An offset-based list. `sort_by` takes `date_created` (the default) or `date_modified`. Secret and trusted tokens that may read fees only; a limited token gets `403`.