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).
accounting:readGrant 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
- 200
- 401
- 403
- 404
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.