Skip to main content
GET
List write-offs

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Query Parameters

organizationId
string<uuid>

Only the write-offs of titles issued from accounts of this Midaz organization. It only filters: the permission covers all the tenant's write-offs.

titleId
string<uuid>

Only the write-offs of this collections title.

accountId
string<uuid>

Only the write-offs of titles issued from this Midaz account.

route
enum<string>

Only the write-offs that settle by this route.

Available options:
CMP,
STR,
INTRABANK,
PIX,
NONE
creditState
enum<string>

Only the write-offs in this credit state.

Available options:
NONE,
TO_RELEASE,
RELEASED,
REVERSED,
CHARGEBACK_PENDING,
CHARGED_BACK
held
enum<string>

Only the write-offs whose credit release is held (true) or is not (false). Left out, both.

Available options:
true,
false
from
string

Lower bound of receivedAt, inclusive. A calendar date (YYYY-MM-DD) is a UTC day and starts at its first instant; an RFC 3339 date-time with offset (e.g. 2026-11-01T00:00:00-03:00) is used as the exact instant. A positive offset must be percent-encoded (%2B).

Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}(T[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]{1,9})?(Z|[+-][0-9]{2}:[0-9]{2}))?$
Example:

"2026-11-01"

to
string

Upper bound of receivedAt, inclusive. A calendar date (YYYY-MM-DD) is a UTC day and covers it to its last instant; an RFC 3339 date-time with offset (e.g. 2026-11-30T23:59:59.999999-03:00) is used as the exact instant. A positive offset must be percent-encoded (%2B).

Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}(T[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]{1,9})?(Z|[+-][0-9]{2}:[0-9]{2}))?$
Example:

"2026-11-30"

cursor
string

Opaque cursor returned in nextCursor or prevCursor. Left out, the first page.

Maximum string length: 512
limit
integer<int64>
default:20

Most write-offs per page.

Required range: 1 <= x <= 100
Example:

20

Response

OK. A page of write-offs.

items
object[]
required

The page's write-offs, oldest first.

limit
integer<int64>
required

Most write-offs the page holds.

Example:

20

nextCursor
string | null

Cursor of the page after this one; null on the last page.

Maximum string length: 512
prevCursor
string | null

Cursor of the page before this one; null on the first page.

Maximum string length: 512