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

Path parameters

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

Headers

AuthorizationstringRequired

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

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