Skip to main content
GET
List the agreements

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Query Parameters

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

"01"

state
enum<string>

Only the agreements in this state.

Available options:
PENDING_REGISTRATION,
ACTIVE,
BLOCKED,
CLOSING,
CLOSED,
CLOSURE_FAILED,
REGISTRATION_REJECTED
page
integer<int64>
default:1

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

Required range: x >= 1
Example:

1

limit
integer<int64>
default:20

Most agreements per page, 1 to 100.

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

20

Response

OK. One page of agreements.

items
object[]
required

The page's agreements, oldest first.

limit
integer<int64>
required

Most agreements the page holds.

Example:

20

page
integer<int64>
required

The page, from 1.

Example:

1

total
integer<int64>
required

How many agreements the filters match, in every page.

Example:

3