Skip to main content

List Bill Invoices

GET 

/api/trackstar/integration-instances/:integration_instance/bills/invoices

List the WMS's invoices for a Trackstar connection, all time. The WMS sends its invoice number on each bill; bills group into one row per invoice number with the bill count, Σ billed amount (billed currency, 4-decimal amounts summed before rounding), the first and last charge date, and where the money landed (landed + landed_counts: on orders, products, purchase orders, cost entries only, unattributed, pending, excluded — they add up to total).

Required scope: accounting:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Each invoice also returns the statement amount entered from the WMS's own invoice file, variance = statement_amount − total, and reconciliation_status: reconciled (|variance| < 0.01), variance, or awaiting_statement (no amount entered yet). A variance is normal: the WMS's invoice can include offline work that is never sent as a bill.

Bills without an invoice number become two extra rows: not_yet_invoiced (charged on or after the first invoiced bill) and before_backfill (charged before it). When no bill carries an invoice number, has_invoice_numbers is false and invoices is empty.

Order: not yet invoiced, then invoices newest first, then before backfill. Requires Bearer token and the integrations.show permission.

Request​

Responses​

OK

Response Headers
    Content-Type