Saltar al contenido principal
GET
List the agreements

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Parámetros de consulta

organizationId
string<uuid>

Only the agreements of accounts of this Midaz organization. It only filters: the permission covers all the tenant's agreements.

accountId
string<uuid>

Only the agreements of this Midaz account.

beneficiaryId
string<uuid>

Only the agreements of this beneficiary.

productType
string

Only the agreements of this product type at Núclea, two digits.

Pattern: ^[0-9]{2}$
Ejemplo:

"01"

state
enum<string>

Only the agreements in this state.

Opciones disponibles:
PENDING_REGISTRATION,
ACTIVE,
BLOCKED,
CLOSING,
CLOSED,
CLOSURE_FAILED,
REGISTRATION_REJECTED
page
integer<int64>
predeterminado:1

Page number, from 1. A page past the last answers no agreement.

Rango requerido: x >= 1
Ejemplo:

1

limit
integer<int64>
predeterminado:20

Most agreements per page, 1 to 100.

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

20

Respuesta

OK. One page of agreements.

items
object[]
requerido

The page's agreements, oldest first.

limit
integer<int64>
requerido

Most agreements the page holds.

Ejemplo:

20

page
integer<int64>
requerido

The page, from 1.

Ejemplo:

1

total
integer<int64>
requerido

How many agreements the filters match, in every page.

Ejemplo:

3