Skip to main content
GET
List the returns

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

X-Organization-Id
string<uuid>
required

Midaz organization the CNAB agreement, remittance or return belongs to. Required: a request without it, or with a value that is not a canonical UUID, is refused with 400 PBP-0025. A resource of another organization is answered 404, exactly as one that does not exist.

Query Parameters

agreementId
string<uuid>

Only the returns of this CNAB agreement.

generatedFrom
string

Lower bound of generatedAt, inclusive. A calendar date (YYYY-MM-DD) is a UTC day and starts at its first instant; an RFC 3339 date-time with offset 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"

generatedTo
string

Upper bound of generatedAt, inclusive. A calendar date is a UTC day and covers it to its last instant. generatedFrom after generatedTo is refused with 422 PBP-0006.

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"

cursor
string

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

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

Most items per page.

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

50

Response

OK. One page of returns.

items
object[]
required

The page's returns, newest first.

limit
integer<int64>
required
nextCursor
string | null
Maximum string length: 512
prevCursor
string | null
Maximum string length: 512