invoices/items/{id} (PUT)

To update an existing client or supplier invoice.

URL

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

PARAMETERS

The URL parameters are:

id

The invoice ID.

int, Mandatory

The request BODY contains a JSON payload with the new invoice’s properties:

properties

Optional. Use if you want to update any of the properties.

Refer to https://wordbee.atlassian.net/wiki/spaces/API2/pages/2487255051 and notable the section “UPDATING”

object, Optional

lines

Optional. Use if you want to replace the existing invoice lines with a new set of lines.

An array if invoice lines. You must submit at least 1 line.

See https://wordbee.atlassian.net/wiki/spaces/API2/pages/2487255115 and make sure to read the notes on Inserting and Updating lines.

object[], Optional

distribution

This is optional. It will be populated with the presets configured in the client record by default (which usually is what is wanted).

If you want to customize this section, submit this object: https://wordbee.atlassian.net/wiki/spaces/API2/pages/2487779489

object?, Optional

RESULTS

The result is the updated invoice document.

See for details.

 

 

 

Copyright Wordbee - Buzzin' Outside the Box since 2008