Exclude the adhesion in this organization
Removes this organization’s adhered accounts from the electronic payer.
How it works
- While another organization of the tenant still has adhered accounts, the adhesion stays for that organization.
- When this organization was the last one, the adhesion is excluded with its accounts and aggregates. No new boleto is presented afterwards.
- On confirmation, this organization receives
ELECTRONIC_PAYER_EXCLUDEDand stops seeing the payer. It still reads this request atGET /v1/electronic-payers/{electronicPayerId}/requests/{requestId}. - The other organizations receive
ELECTRONIC_PAYER_UPDATEDwith the same payer version. - A refusal arrives as
ELECTRONIC_PAYER_UPDATE_REJECTED, with therequestIdand the reason inrejection. - 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.
Resposta
Accepted. The outcome arrives as ELECTRONIC_PAYER_EXCLUDED for this organization, or as ELECTRONIC_PAYER_UPDATE_REJECTED.

