invoices/items/{id}/status/{status} (PUT)

To update the invoice status.

Exactly as in the online User Interface, this method will trigger any automatic business operations that are configured in the platform. For example, auto-assignment of quote or invoice numbers depending on the status transition. The same will of course also happen when using the more general invoice update method.

URL

(PUT) /api/invoices/items/{id}/status/{status}

PARAMETERS

The URL parameters are:

id

The invoice ID.

int, Mandatory

status

The new invoice status. See options here: Invoice status

int, Mandatory

RESULTS

The result is a JSON object:

status

The new status of the invoice.

int

statust

Title of status in language of user.

string

EXAMPLES

Changing the status:

PUT /api/invoices/items/3668/status/1

Result:

{ "status": 1, "statust": "Quote Sent" }

 

 

Copyright Wordbee - Buzzin' Outside the Box since 2008