Enable an account to issue
Enables the holder of a Midaz account to issue boletos through collections. The account belongs to the organization in X-Organization-Id.
How it works
- The holder is read from the ledger and the people registry through the account. Do not send a document or a name. The response carries none.
- The account gets the tenant’s default agreement template. To override it, send
agreements: 1 to 8 agreements, one per product type. - The enablement runs in the background through commands to the PCR. The
202returns the holder’s beneficiary as it stands. Follow it withgetBeneficiary. - A holder new to collections starts as
REQUESTED. Its registration starts with a consultation of Núclea’s beneficiary base. - A holder already enabled, or with an enablement in progress, takes the account’s agreements into the same registration.
- A holder rejected or disabled is enabled again from
REQUESTED. - An account linked to a pooled account is never enabled. It issues under the pooled account’s agreement.
AT_SETTLEMENTrelease policy requireschargebackRiskAcknowledged: true.- The enablement is recorded in the collections audit trail with its
reasonand the identity that made it. - No notice is sent for the outcome (accepted, refused or held by a market alert). Read it with
getBeneficiary. - The organization is part of the request. The same key under another
X-Organization-Idis refused withPBP-0013while the key is kept (48 hours by default).
Cabeçalhos
Corpo
Resposta
Accepted. The enablement runs in the background. The body is the holder's beneficiary as it stands. Follow it with getBeneficiary.
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.
REQUESTED, CONSULTED, HELD_BY_ALERT, SUBMITTED, ACCEPTED, REJECTED, DISABLED "ACCEPTED"

