Skip to main content

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).

Required scope: accounting:write

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

Body fields:

  • statement_amount (number, optional, nullable, up to 4 decimals) — the invoice total
  • statement_currency_code (string, optional, nullable, 3 letters) — defaults to the bills' currency
  • statement_date (date Y-m-d, optional, nullable) — the invoice date
  • notes (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​

OK

Response Headers
    Content-Type