DELETE
Remove a purchase line
Company space Cannot be undone For: Buyer, Manager · Permission: purchases.update, purchase_items.delete Conditions
  • The purchase must be in draft or rejected status.
  • The last remaining line of a purchase cannot be removed.
  • When the resulting purchase has VAT greater than zero, vat_is_recoverable must have been set; otherwise the call is refused with a validation error.
What else happens
  • Deletes the line and recalculates the purchase: unit_cost_ttc of the remaining lines, cost_total, vat_total, invoice_total and cost_leftover.
  • No stock or accounting records are touched.
Part of Create and approve purchases.

Authorizations

Authorization
string
header
required

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

Path Parameters

purchase
string
required

Identifier of the purchase that owns the line.

item
string
required

Identifier of the purchase line to remove.

Query Parameters

response
enum<string>
default:none

Response mode. Default none; none answers 204 No Content.

Available options:
none

Response

204

No Content (response mode none).