Pular para o conteúdo principal
GET
List the agreements

Autorizações

Authorization
string
header
obrigatório

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}$
Exemplo:

"01"

state
enum<string>

Only the agreements in this state.

Opções disponíveis:
PENDING_REGISTRATION,
ACTIVE,
BLOCKED,
CLOSING,
CLOSED,
CLOSURE_FAILED,
REGISTRATION_REJECTED
page
integer<int64>
padrão:1

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

Intervalo obrigatório: x >= 1
Exemplo:

1

limit
integer<int64>
padrão:20

Most agreements per page, 1 to 100.

Intervalo obrigatório: 1 <= x <= 100
Exemplo:

20

Resposta

OK. One page of agreements.

items
object[]
obrigatório

The page's agreements, oldest first.

limit
integer<int64>
obrigatório

Most agreements the page holds.

Exemplo:

20

page
integer<int64>
obrigatório

The page, from 1.

Exemplo:

1

total
integer<int64>
obrigatório

How many agreements the filters match, in every page.

Exemplo:

3