Add an aggregate
Adds an aggregate to the electronic payer. Boletos issued against the aggregate are presented to this payer, at this institution only.
How it works
- Send the aggregate’s
document(CPF or CNPJ, without punctuation; a CNPJ can be alphanumeric) and the customer’sconsent. consent.acceptedAtcannot be in the future or older than 24 hours (configurable).- The answer is
202with arequestId. The outcome arrives as a webhook notice and atGET /v1/electronic-payers/{electronicPayerId}/requests/{requestId}. - 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.
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/{electronicPayerId}/requests/{requestId}.

