Prerequisites
- A valid Bearer token and mTLS client certificate. See Authentication.
- The billing period you want to reconcile (start and end dates in
YYYY-MM-DDformat).
Step 1: Fetch all transactions for the period
UseoperationDateRangeStart and operationDateRangeEnd to scope the request to a specific billing period. Transactions are paginated — page through all results before moving on.
Pagination loop
Continue requesting untilnumber equals totalPages - 1, or until a page returns fewer items than size.
Pre-authorizations (
PRE_AUTHORIZED) may settle as AUTHORIZED up to 2 business days later. For a complete reconciliation, either wait for settlement or run an incremental sync using lastUpdateDateRangeStart.Step 2: Fetch the billing statement
Get the list of billing statements and find the one whose date range matches your period.amountValue across all AUTHORIZED transactions in your export should equal the statement’s totalAmount.
Step 3: Tag transactions with accounting labels
Labels let you attach GL codes, cost centers, or project IDs to transactions before exporting. Bind them in bulk for efficiency.Step 4: Download supporting documents
For any transaction withhasAttachments.value: true, download the attached receipts.
hasInvoice.value: true also have a CFDI XML available at GET /api/v3/transactions/{uuid}/invoices.
