Skip to main content
POST
Enable an account to issue

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

X-Organization-Id
string

Midaz organization of the account the body names. Required: a request without it, or with a value that is not a canonical UUID, is refused with 400 PBP-0025.

Idempotency-Key
string
required

Client-supplied idempotency key, a UUID. Required: a request without it, with a value that is not a UUID, or with the nil UUID (00000000-0000-0000-0000-000000000000) is refused with 400 PBP-0012. The same key and body under another organization is another request.

Body

application/json
accountId
string<uuid>
required

Midaz account to enable, of the organization X-Organization-Id names.

Example:

"0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a6d"

reason
string
required

Reason for the enablement, recorded in the audit trail. Must not carry personal data.

Required string length: 10 - 500
Example:

"Enablement of the account of the new portfolio."

agreements
object[]

The account's own agreement list, one per product type, used instead of the tenant's default agreement template. Left out, the default template.

Required array length: 1 - 8 elements
ledgerId
string

Midaz ledger of the account. Required: absent, blank or not a canonical UUID is refused with 400 PBP-0026.

Example:

"0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a6c"

Response

Accepted. The enablement runs in the background. The body is the holder's beneficiary as it stands. Follow it with getBeneficiary.

agreementIds
string[]
required

Agreements of the beneficiary, in any state, oldest first; at most the first 16. In the answer of an enablement, the agreements that enablement created on the account.

Maximum array length: 16
connectionId
string<uuid>
required

Connection to the PCR the beneficiary is registered through.

Example:

"0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a72"

createdAt
string<date-time>
required

When the beneficiary was created, RFC 3339 in UTC.

Example:

"2026-11-11T14:00:00Z"

enablementMode
enum<string>
required

EXPLICIT: asked for one account. BATCH: an item of an enablement batch. AUTOMATIC: started by an issuance, as the tenant's settings allow. IMPORT: taken from Núclea's base, never asked for.

Available options:
EXPLICIT,
BATCH,
AUTOMATIC,
IMPORT
Example:

"EXPLICIT"

enablementState
enum<string>
required

REQUESTED: asked for, not yet consulted in the beneficiary base. CONSULTED: the consultation found nothing that holds it, or an operator approved it over an alert. HELD_BY_ALERT: held because another institution marked the holder under review or unfit; an operator approves or rejects it. SUBMITTED: the registration was sent to the PCR, waiting for its outcome. ACCEPTED: registered in the base, enabled to issue. REJECTED: refused, by the PCR or by an operator; reason says why. DISABLED: no longer enabled to issue.

Available options:
REQUESTED,
CONSULTED,
HELD_BY_ALERT,
SUBMITTED,
ACCEPTED,
REJECTED,
DISABLED
Example:

"ACCEPTED"

holderId
string<uuid>
required

Holder, the person in the platform's people registry.

Example:

"0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a71"

id
string<uuid>
required

Identifier of the beneficiary.

Example:

"c56a4180-65aa-42ec-a945-5fd21dec0538"

origin
enum<string>
required

COLLECTIONS: registered by collections. IMPORTED: registered outside collections and adopted.

Available options:
COLLECTIONS,
IMPORTED
Example:

"COLLECTIONS"

updatedAt
string<date-time>
required

When the beneficiary last changed, RFC 3339 in UTC.

Example:

"2026-11-11T14:00:00Z"

baseSituation
enum<string> | null

The holder's own situation in the beneficiary base: FIT, UNDER_REVIEW or UNFIT; null until the base reports one.

Available options:
FIT,
UNDER_REVIEW,
UNFIT,
null
Example:

"FIT"

marketAlert
object | null

The latest situation another institution reported about the holder; null when there is none.

nucleaBeneficiaryNumber
string | null

Number of the beneficiary in Núclea's base (NumIdentcBenfcrio); null until Núclea registers it.

Pattern: ^[0-9]{1,19}$
Example:

"1234567890"

organizationId
string<uuid> | null
read-only

Midaz organization of the account whose enablement created the beneficiary; null for a beneficiary taken from Núclea's base without an account.

Example:

"0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a6b"

reason
object | null

Why the enablement was REJECTED, by the PCR, the Núclea, an operator or collections itself; on a DISABLED beneficiary, why the exclusion of its relationship at the Núclea was refused, while that refusal stands. Null otherwise.