Update Bill Invoice Statement
PUT/api/trackstar/integration-instances/:integration_instance/bills/invoices/:invoiceNumber
Enter what the WMS's own invoice file says for one invoice number. Every field is optional and only the fields sent are changed, so the amount and the notes can be saved separately; send statement_amount: null to clear the statement (back to awaiting_statement).
accounting:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Body fields:
statement_amount(number, optional, nullable, up to 4 decimals) — the invoice totalstatement_currency_code(string, optional, nullable, 3 letters) — defaults to the bills' currencystatement_date(date Y-m-d, optional, nullable) — the invoice datenotes(string, optional, nullable, max 2000)
Returns the invoice row in the same shape as List Bill Invoices, with the new variance and status. 404 when no bill of this connection carries the invoice number. Requires Bearer token and the integrations.update permission.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 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
Response Headers
Unprocessable Content
Response Headers
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.