Saltar al contenido principal
GET
List write-offs

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Parámetros de consulta

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.

Opciones disponibles:
CMP,
STR,
INTRABANK,
PIX,
NONE
creditState
enum<string>

Only the write-offs in this credit state.

Opciones disponibles:
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.

Opciones disponibles:
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}))?$
Ejemplo:

"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}))?$
Ejemplo:

"2026-11-30"

cursor
string

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

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

Most write-offs per page.

Rango requerido: 1 <= x <= 100
Ejemplo:

20

Respuesta

OK. A page of write-offs.

items
object[]
requerido

The page's write-offs, oldest first.

limit
integer<int64>
requerido

Most write-offs the page holds.

Ejemplo:

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