Actions7
Change State → Change
AI-generatedSummary
Change the state of an invoice, invoice receipt, or credit note in InvoiceXpress.
Inputs
- id (required) — Invoice/Invoice Receipt/Credit Note ID
- type (required) — Type of item to change state for
- state (required) — Target state for the item
- actualizeDateBeforeChange (required) — Whether changing the item’s state will set the date to today (invoice/invoice receipt only)
- batching — Batching settings for request throttling
- allowUnauthorizedCerts — Whether to accept the response even if SSL certificate validation is not possible
- proxy — HTTP proxy to use. If authentication is required it can be defined as follow: http://username:password@myproxy:3128
- timeout — Time in ms to wait for the server to send response headers before aborting the request
Output shape
The InvoiceXpress API returns the updated resource object on success.
No explicit return shape is declared in the provided source; behavior follows the API contract of the POST /v2/change_state endpoint.
Examples
Example 1: Finalize invoice #42
id=42, type=invoice, state=finalized, actualizeDateBeforeChange=false