Update the line items of a receivable

Use this endpoint to update the line items in: * draft quotes, * invoices in the `draft` and `recurring` statuses, * ([non-compliant mode only](https://docs.monite.com/accounts-receivable/regulatory-compliance/invoice-compliance)) invoices in the `issued` and `overdue` statuses. Invoices and quotes in other statuses cannot be updated. The list of line items provided in the request body fully replaces all previous line items in the specified document. To update the line items in draft credit notes, use [`PATCH /receivables/{receivable_id}`](https://docs.monite.com/api/receivables/patch-receivables-id) instead.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

receivable_idstringRequired
ID of the invoice or quote you want to update.

Headers

x-monite-versionstringRequired
x-monite-entity-idstringRequired
The ID of the entity that owns the requested resource.

Request

This endpoint expects an object.
datalist of objectsRequired
The new list of line items that will replace existing line items.

Response

Successful Response
datalist of objects
The list of line items.

Errors