Enable accounts in a batch
Enables up to 5,000 accounts for collections, in the background. The accounts belong to the organization in X-Organization-Id.
How it works
- Each item names the account and its ledger. It can carry the account’s own agreement list (1 to 8 agreements) instead of the tenant’s default agreement template.
- The whole batch is checked before anything is written. An account named twice refuses the batch. The first item the rules refuse also refuses the batch, and
detailnames it at the end. - Split larger lists into several batches.
- The
202returns the batch asPROCESSING, with every itempending. Items are then processed one by one, each under the rules of a single enablement, with its own outcome. - Follow the batch with
getEnablementBatchand each item withlistEnablementBatchItems. No notice is sent for the outcome. - The creation is recorded in the collections audit trail with its
reasonand the identity that made it. - The batch keeps its
Idempotency-Keyuntil it is purged (90 days after it completes, by default). After the 48 hours the answer is stored, the same key and body in the same organization still return202with the same batch, and another body is still refused withPBP-0013. - Within 48 hours, the same key under another organization is refused with
PBP-0013. After that, it creates a separate batch for that organization.
Encabezados
Client-supplied idempotency key, a UUID. Required: a request without it, with a value that is not a UUID, or with the nil UUID (00000000-0000-0000-0000-000000000000) is refused with 400 PBP-0012. The same key and body under another organization is another request. The batch keeps the key for as long as it is kept (until the technical purge, 90 days after it completes by default): past the 48 hours the answer is stored, the same key and body are still answered 202 with the batch they created, and another body is still refused with 422 PBP-0013.
Cuerpo
Respuesta
Accepted. The batch is PROCESSING and every item is pending. Follow it with getEnablementBatch and listEnablementBatchItems.

