Batch post-to-ledger for many statements
Publisher Bulk Ops
Batch post-to-ledger for many statements
POST /publisher/statements/bulk-post
POST
Batch post-to-ledger for many statements
This endpoint requires authentication. Include your Bearer token in the Authorization header.
Description
POST /publisher/statements/bulk-post Statement-scoped, not publisher-scoped — each id instatementIds
resolves its own publisher inside the ledger bridge, so a single
batch can span multiple publishers. Runs the same bridge as the
single-statement POST /publisher/statements/{id}/post-to-ledger
for each id, cap 50 ids per request.
dryRun: true previews every statement’s outcome
(outcome: "dry_run") with nothing written and no writer
statements generated. On a real run, after every statement in the
batch has posted, one writer-statement generation is attempted per
distinct (writer × tenant-grain window) pair that received a
posting this batch — reported in writerStatements.
summary.totalsByCurrency is keyed by statement currency —
amounts across different currencies are never summed into one
number.
Authorization: admin role + publisher addon.
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Body
application/json
Response
Batch processed (see summary/results for per-statement outcomes; a per-statement error does not fail the request).