Upload a CSV of items to a PIX batch
Appends every data row of a CSV in the template vocabulary to a DRAFT
or REVIEWED batch, atomically. Send the raw file as the body
(Content-Type: text/csv), up to 5 MiB. The header is matched by
column name (order-insensitive, case-insensitive); ; and ,
separators are detected; amount accepts 1234.56, 1.234,56 or
R$ 1.234,56. The trailing errorCode/errorMessage columns of a
correction export are ignored, so the file downloaded from
GET .../items/export can be fixed and re-uploaded as is.
Any invalid row rejects the whole file (400 pix_batch_csv_invalid
with errors[]). More rows than limits.maxItems is
400 pix_batch_too_large. Same identifier rules as PUT .../items.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
PIX batch identifier (pxb_…) returned by the create endpoint.
Headers
Optional client-generated idempotency token (recommended for safe retries).
Request
Response
Entire file appended; batch back to DRAFT
Batch identifier (pxb_…).
Optional operator-facing name; empty when omitted.
Batch lifecycle. DRAFT and REVIEWED are editable (editing a
REVIEWED batch returns it to DRAFT). REVIEWING is the asynchronous
pre-flight. Dispatch requires REVIEWED. COMPLETED, PARTIAL_FAILED
and FAILED are terminal and the only states with receipts.
Amount in BRL as a decimal string with two places (1234.56).
Summary written when the review finishes (or aborts).