Create a Boleto Charge batch

Creates an empty DRAFT batch for this account. Scope boleto_charge.manage; BaaS only. Add items in atomic chunks with PUT .../items, then dispatch once. Creating a draft consumes no issuance quota. Idempotency-Key is required; an exact retry returns the existing batch.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

accountIdstringRequired
Account identifier.

Headers

Idempotency-KeystringRequired>=8 characters

Client-generated idempotency token.

X-Tenant-IdstringRequired
Tenant context used for authorization and routing.

Request

This endpoint expects an object.
namestringOptional<=120 characters

Optional operator-facing batch name.

Response

Idempotent retry; returns the existing batch

batchIdstring
Batch identifier.
namestring

Optional operator-facing name; empty when omitted.

statusenum

Batch lifecycle. Only DRAFT is editable. COMPLETED, PARTIAL_FAILED, and FAILED are terminal for issuance attempts; individual boleto registration and payment continue afterwards.

totalItemsinteger0-5000
Number of staged items.
quotaReservedinteger0-5000
Slots permanently reserved when dispatch was admitted.
statisticsobject
Current generation progress and payment conversion.
createdAtdatetime
Draft creation instant, in UTC.
updatedAtdatetime

Last persisted batch/statistics update, in UTC.

itemslist of objects
Current page of staged items and issuance results.
pageinteger
Current item page.
pageSizeinteger
Requested item page size.
totalPagesinteger
Number of item pages.
hasNextboolean
Whether another item page exists.
dispatchedAtdatetime or nullOptional
Instant quota was reserved and the batch was queued.
completedAtdatetime or nullOptional
Instant every issuance attempt reached an outcome.

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error