Get an order's fee summary
Returns the Comecero fees on the order: the fees of all its payments and their refunds, added up per currency.
Needs a secret or trusted token that may read fees. Limited tokens are refused. A token without the fees permission gets 401, not 403.
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
order_id*stringThe order id.
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 Comecero fees charged on a payment, a refund or a whole order, added up. An order's summary adds the fees of all its payments and their refunds. Amounts in different currencies are never added together: the top-level amounts are in currency, and totals has one entry per currency.
object*"fee_summary"The object type. Always fee_summary.
"fee_summary"url*|The URL of this summary. Null when no fees were recorded.
urifixed_amount*numberThe sum of the fixed fees, in currency.
percentage_amount*numberThe sum of the percentage fees, in currency.
total*numberfixed_amount plus percentage_amount, in currency.
currency*|The currency of the top-level amounts (the first payment's fee currency). Null when no fees were recorded.
totals*array<>The sums for each currency, the top-level currency first.
formatted?Display text. Only present when you send formatted=true.
curl -X GET 'https://api.comecero.com/api/v1/orders/string/fee_summary'{ "object": "fee_summary", "url": "https://api.comecero.com/api/v1/orders/7393-GMRFY-954/fee_summary", "fixed_amount": 0.3, "percentage_amount": 2.25, "total": 2.55, "currency": "USD", "totals": [ { "currency": "USD", "fixed_amount": 0.3, "percentage_amount": 2.25, "total": 2.55 } ]}Capture an order POST
Captures the money that was only authorized on the order's pending payments. Money moves. To capture all of it, send no body at all: a JSON body without `total`, `items` or `shipping` (even `{}`) captures nothing and releases the rest. To capture part, send a `total`, or `items` and `shipping`. The part you do not capture is written down as a record-only refund (no money moves for it), so the order shows what was really charged. When the order has more than one pending payment, the largest is captured first and any payment left over once the amount is reached is voided. Returns `201` with a `payment_list` holding each payment and its result. When every capture fails, the API answers with an error instead and puts the `payment_list` in the error's `meta.payment_list`. Needs a secret or trusted token that may create or update payments. A token without that permission gets `401`, not `403`.
List an order's items GET
Lists the lines on an order. Offset-based (`offset`, `limit`). With no `limit`, every item comes back on one page. `sort_by` takes `date_created` (default), `date_modified`, `product_id` or `item_id`. A limited token may call this for an order of its own customer.