Pular para o conteúdo principal
POST
Authorize a third party for a boleto

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

Idempotency-Key
string<uuid>
obrigatório

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.

X-Organization-Id
string<uuid>
obrigatório

Parâmetros de caminho

electronicPayerId
string<uuid>
obrigatório
receiverBoletoId
string<uuid>
obrigatório

Corpo

application/json
authorizer
object
obrigatório
document
object
obrigatório

Attestation of the customer's consent, collected by the institution. Sent on to whoever keeps it for the institution.

Resposta

Accepted. The request was taken for processing. The outcome arrives as a webhook notice and at GET /v1/electronic-payers/{electronicPayerId}/requests/{requestId}.

requestId
string<uuid>
obrigatório
kind
enum<string>
obrigatório
Opções disponíveis:
REGISTRATION,
ACCOUNTS_UPDATE,
EXCLUSION,
AGGREGATE_ADDITION,
AGGREGATE_REMOVAL,
ACCEPTANCE,
THIRD_PARTY_ADDITION,
THIRD_PARTY_REMOVAL
status
enum<string>
obrigatório
Opções disponíveis:
PENDING
electronicPayerId
string<uuid>

Absent only on an adhesion whose provider answer was not received; a retry with the same Idempotency-Key returns it, and GET /electronic-payers/requests/{requestId} reads the request meanwhile.

aggregateId
string<uuid>
thirdPartyId
string<uuid>