List the returns
Lists the returns of the organization in X-Organization-Id, newest first.
How it works
- The order is
generatedAt, thenid. - Paging works as in
GET /v1/cnab/agreements. generatedFromandgeneratedTotake a date (YYYY-MM-DD, a whole UTC day) or an RFC 3339 date-time with offset (an exact instant). Encode a positive offset as%2B.- A return whose stored file was purged is still listed (
filePurgedtrue) and can still be downloaded.
Encabezados
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.
Parámetros de consulta
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).
^[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}))?$"2026-11-01"
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.
^[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}))?$"2026-11-01"

