Adhere a customer to electronic presentment
Adheres a customer to electronic presentment of boletos (DDA) with the given accounts.
How it works
- Identify the customer by
holderId, the holder in the Midaz CRM. Do not send the payer’s document: the provider reads it from the holder record. - Every account in
accountsmust belong to that holder. aggregatesis optional and adds aggregates with the adhesion.- Send the customer’s
consent.acceptedAtcannot be in the future or older than 24 hours (configurable). - A customer already adhered in another organization of the tenant is not adhered twice. The accounts are added to the existing electronic payer, and the answer carries its
electronicPayerIdwith kindACCOUNTS_UPDATE. - The answer is
202with arequestId. The outcome arrives as a webhook notice and atGET /v1/electronic-payers/requests/{requestId}. - The answer has no
electronicPayerIdonly when the provider did not answer. Retry under the sameIdempotency-Keyto get it, and read the request meanwhile byrequestId. - A retry under the same
Idempotency-Keyand body returns the same202andrequestId. It never creates a second request. - The same key with another body or
X-Organization-Idis refused withPBP-0013. - If the provider did not answer an earlier attempt, the same key and body resend it with the same
requestId. The provider discards the duplicate. - A
503or a4xxrefusal of this request releases the key, so a corrected retry can use it.409andPBP-0013refer to an earlier request and leave its key bound. After a202, the key stays bound to that request.
Cabeçalhos
UUID. The same key with the same body returns the same 202 with the same requestId and never creates a second request; the same key with another body is refused. One exception: while the provider has not answered the request (the earlier answer was 202 PENDING because the provider did not answer after the request was sent), a retry with the same key and body sends the request again with the same requestId, which the provider deduplicates, and returns the 202 completed with the provider's answer (for an adhesion, the electronicPayerId). Once the provider has answered, retries return that 202 unchanged. The key is released only by a 503, when no attempt under it can have reached the provider.
Corpo
Resposta
Accepted. The request was taken for processing. The outcome arrives as a webhook notice and at GET /v1/electronic-payers/requests/{requestId}. Without electronicPayerId, the provider has not answered yet: retry under the same Idempotency-Key to get it.

