Overview
Transactions, settlements, fee statements and balances of the sellers, for reconciliation.
Finance shows the seller's money in each marketplace: what came in, the fees charged, what was paid out and the balance. Use it for reconciliation. Do not use it as an operational source: an order's price and fees come from the order.
Where finance fits in the journey: Grow and track.
Endpoints
| Method | Path | What it does |
|---|---|---|
GET | /v1/financial-transactions | List transactions |
GET | /v1/settlements | List settlements |
GET | /v1/fee-statements | List fee statements |
GET | /v1/financial-balances | List balances |
All require Authorization: Bearer mk_your_api_key. See Authentication.
Transaction
Each transaction has a normalized type: sale, refund, fee, shipping, adjustment, chargeback, payout, advertising, tax, promotion or other. The marketplace's original type is always kept in externalType. On fee transactions, feeType tells which fee.
status is pending, available, settled or cancelled. When possible, the transaction points to the order (orderId) and to the settlement (settlementId).
The sign of the amount
amountInCents is signed: credit is positive, debit is negative. A sale of R$ 100.00 is 10000. Its commission is, for example, -1200.
Lag
Data is read from the marketplace once a day. What happened today may show up only tomorrow. A transaction can arrive before its order: the orderId link is retried on every round.
Settlements, statements and balances
- Settlement (
Settlement): statusscheduled,in_transit,paid,failedorcancelled. - Fee statement (
FeeStatement): statusopen,closed,paid,overdueorunknown, with abreakdownper fee anddocuments(invoices and credit notes). - Balance (
FinancialBalance):availableInCents,pendingInCentsandblockedInCents, per currency.
Rules
- Transactions come newest first, by
occurredAt. - Filter by
connectionId. Without it, the list covers every Connection of the account. - An inverted period (
fromafterto) returns400. A resource from another account returns404. - Not every marketplace offers all four reads. When the Connection does not, the response is
422. - The transaction description carries no personal data.