Get Statement
Use this route to get the statement of your account or a specific partner. The response is a unified list of credits and debits, ordered from the newest movement to the oldest.
GETv3/financial/statement
Request Query Params
| Attribute | Type | Description |
|---|---|---|
| sub_seller_id | string | Partner ID whose statement will be queried. When omitted, the query returns the seller account statement. |
| date_start | date | Start of the range in YYYY-MM-DD. Default: 7 days before date_end (today, Brasília time). |
| date_end | date | End of the range in YYYY-MM-DD. Default: today (Brasília time). Must be greater than or equal to date_start. |
| page | int32 | Page number. Default: 1. Minimum: 1. |
| page_size | int32 | Items per page. Default: 20. Minimum: 1. Maximum: 100. |
Maximum range
The interval between date_start and date_end cannot exceed 180 days.
Tip
net_value, gross_amount and splits_amount are in cents and signed: positive on credit, negative on debit. Direction is in operation_type (credit or debit).
How the statement is built
Each row is an immutable entry. A refunded or chargedback transaction produces two entries: the original credit and the later debit, each with its own date.
| Event | type | operation_type | When it appears |
|---|---|---|---|
| Paid transaction | transaction | credit | On the date the transaction was paid. Non-anticipated sales include receivables[] on that same credit; the payout day only adds the wd_ row. |
| Refund or chargeback | transaction | debit | On the refund/chargeback date. The original credit stays. status is refunded or chargedback. |
| Withdrawal (manual or automatic) | withdrawal | debit | For manual withdrawals at request time; for accounts with automatic payout, at transfer time. |
Identifiers
entry_id is deterministic. You can use it to deduplicate pages:
| type | entry_id format |
|---|---|
| transaction (credit) | txn_{transaction_id}_credit |
| transaction (debit) | txn_{transaction_id}_debit |
| withdrawal | wd_{withdrawal_id} |
Response Object
| Attribute | Type | Description |
|---|---|---|
| total | int32 | Total entries that match the query filter. |
| page | int32 | Current page relative to the offset of pages. |
| offset | int32 | Total number of pages for page_size divided by the total entries in the query. |
| statement | array | Entries in the range, ordered by creation date descending. |
| statement[][entry_id] | string | Deterministic entry ID. |
| statement[][type] | string | Type. Values: transaction, withdrawal. |
| statement[][status] | string | Source status. Examples: paid, refunded, chargedback, processing, transferred. |
| statement[][source_id] | string | Source ID: transaction or withdrawal. |
| statement[][date_created] | dateTime | Entry date in ISODateTime format. |
| statement[][date_created_timestamp] | int64 | Epoch milliseconds of date_created, used for ordering. |
| statement[][date_updated] | dateTime | Last update date of the entry in ISODateTime format. |
| statement[][operation_type] | string | Entry direction. Values: credit, debit. |
| statement[][transaction_id] | string | Transaction ID. null on withdrawals. |
| statement[][withdrawal_id] | string | Withdrawal ID. null on transactions. For an automatic payout this is the TED UUID. |
| statement[][installments] | string | Transaction installment count. null on withdrawals. |
| statement[][payment_method] | string | Transaction payment method. null on withdrawals. |
| statement[][gross_amount] | int32 | Gross amount in cents, signed. Negative on debit. |
| statement[][rate] | number | Fee as a percentage. For debit operations: 0. |
| statement[][rate_value] | int32 | Fee amount in cents. For debit operations: 0. |
| statement[][splits_amount] | int32 | Signed sum of the transaction split.amount values, in cents. On withdrawal: 0. |
| statement[][net_value] | int32 | Net amount in cents, signed. Seller: gross_amount - rate_value - splits_amount (on credit). Partner: the split amount. Withdrawal: same as gross_amount. |
| statement[][acquirer] | string | Transaction acquirer. null on withdrawals. |
| statement[][receivables] | array | Present on non-anticipated sale credits and refunds. Omitted on anticipated transactions and withdrawals. This endpoint does not return payable_details. |
| statement[][receivables][][installment] | int32 | Installment number. |
| statement[][receivables][][gross_amount] | int32 | Installment gross amount, in cents. |
| statement[][receivables][][net_amount] | int32 | Installment net amount, in cents. |
| statement[][receivables][][rate] | number | Installment rate as a percentage, two decimal places. |
| statement[][receivables][][rate_value] | int32 | Installment fee amount, in cents. |
| statement[][receivables][][expected_settlement_date] | dateTime | Expected payout date (Barte execution_date). |
| statement[][receivables][][effective_settlement_date] | dateTime | TED/payout date that settled the installment. null until payout. |
Example Response
{
"total": 2,
"page": 1,
"offset": 1,
"statement": [
{
"entry_id": "wd_withdrawal_1234567890",
"type": "withdrawal",
"status": "processing",
"source_id": "withdrawal_1234567890",
"date_created": "2026-08-20T14:30:00.000Z",
"date_created_timestamp": 1755700200000,
"date_updated": "2026-08-20T14:30:00.000Z",
"operation_type": "debit",
"transaction_id": null,
"withdrawal_id": "withdrawal_1234567890",
"installments": null,
"payment_method": null,
"gross_amount": -10000,
"rate": 0,
"rate_value": 0,
"splits_amount": 0,
"net_value": -10000,
"acquirer": null
},
{
"entry_id": "txn_HcDscltTIVK3VMAAOj7J_credit",
"type": "transaction",
"status": "paid",
"source_id": "HcDscltTIVK3VMAAOj7J",
"date_created": "2026-08-18T14:30:00.000Z",
"date_created_timestamp": 1755527400000,
"date_updated": "2026-08-18T14:30:00.000Z",
"operation_type": "credit",
"transaction_id": "HcDscltTIVK3VMAAOj7J",
"withdrawal_id": null,
"installments": "1",
"payment_method": "credit_card",
"gross_amount": 90000,
"rate": 2.49,
"rate_value": 2241,
"splits_amount": 86310,
"net_value": 86310,
"acquirer": "sample_acquirer"
}
]
}
Error Object
| Attribute | Type | Description |
|---|---|---|
| errors | array | Array with all errors found while processing the request. |
| errors[][type] | string | Type of error that occurred. |
| errors[][message] | string | Detailed message of the error that occurred. |
Example error
{
"errors": [
{
"type": "date_end",
"message": "The parameter [ date_end ] must be at most 180 days after date_start."
}
]
}
Examples
ATTENTION
The values used in the examples below are for illustration only and must not be used to make requests to Marlim APIs.
- Account statement
- Partner statement
- Empty page
- Range greater than 180 days
- Partner not found
curl -X GET -G "https://api.marlim.co/v3/financial/statement" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d date_start="2026-08-14" \
-d date_end="2026-08-20"
{
"total": 1,
"page": 1,
"offset": 1,
"statement": [
{
"entry_id": "txn_HcDscltTIVK3VMAAOj7J_credit",
"type": "transaction",
"status": "paid",
"source_id": "HcDscltTIVK3VMAAOj7J",
"date_created": "2026-08-18T14:30:00.000Z",
"date_created_timestamp": 1755527400000,
"date_updated": "2026-08-18T14:30:00.000Z",
"operation_type": "credit",
"transaction_id": "HcDscltTIVK3VMAAOj7J",
"withdrawal_id": null,
"installments": "1",
"payment_method": "credit_card",
"gross_amount": 90000,
"rate": 2.49,
"rate_value": 2241,
"splits_amount": 86310,
"net_value": 86310,
"acquirer": "sample_acquirer"
}
]
}
curl -X GET -G "https://api.marlim.co/v3/financial/statement" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d sub_seller_id="sub_k4m6Rw5rlQszEY7fiuRe" \
-d date_start="2026-08-14" \
-d date_end="2026-08-20" \
-d page="1" \
-d page_size="20"
{
"total": 2,
"page": 1,
"offset": 1,
"statement": [
{
"entry_id": "txn_XyZabcDefGhiJklMnOp_debit",
"type": "transaction",
"status": "refunded",
"source_id": "XyZabcDefGhiJklMnOp",
"date_created": "2026-08-19T11:00:00.000Z",
"date_created_timestamp": 1755601200000,
"date_updated": "2026-08-19T11:00:00.000Z",
"operation_type": "debit",
"transaction_id": "XyZabcDefGhiJklMnOp",
"withdrawal_id": null,
"installments": "1",
"payment_method": "credit_card",
"gross_amount": -5000,
"rate": 0,
"rate_value": 0,
"splits_amount": -5000,
"net_value": -5000,
"acquirer": "sample_acquirer"
},
{
"entry_id": "txn_XyZabcDefGhiJklMnOp_credit",
"type": "transaction",
"status": "paid",
"source_id": "XyZabcDefGhiJklMnOp",
"date_created": "2026-08-18T18:00:00.000Z",
"date_created_timestamp": 1755540000000,
"date_updated": "2026-08-18T18:00:00.000Z",
"operation_type": "credit",
"transaction_id": "XyZabcDefGhiJklMnOp",
"withdrawal_id": null,
"installments": "1",
"payment_method": "credit_card",
"gross_amount": 5000,
"rate": 0,
"rate_value": 0,
"splits_amount": 5000,
"net_value": 5000,
"acquirer": "sample_acquirer"
}
]
}
curl -X GET -G "https://api.marlim.co/v3/financial/statement" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d date_start="2026-08-14" \
-d date_end="2026-08-20" \
-d page="5" \
-d page_size="20"
{
"total": 2,
"page": 5,
"offset": 1,
"statement": []
}
curl -X GET -G "https://api.marlim.co/v3/financial/statement" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d date_start="2026-01-01" \
-d date_end="2026-08-01"
{
"errors": [
{
"type": "date_end",
"message": "The parameter [ date_end ] must be at most 180 days after date_start."
}
]
}
curl -X GET -G "https://api.marlim.co/v3/financial/statement" \
-H "Content-Type: application/json" \
-H "api_key: api_key_value" \
-d sub_seller_id="sub_123456789"
{
"errors": [
{
"type": "not_found",
"message": "Sub Seller with id [sub_123456789] was not found"
}
]
}