Delete Purchase Invoice: /purchase-invoices/{purchase_invoice_id}
Purpose
This API is used to permanently delete an existing purchase invoice from the system. It removes the invoice and all related data (such as line items, tax details, and linked records) associated with the specified purchase invoice ID.
Use Case
Use this API when a purchase invoice has been created in error or is no longer required in the system. This helps maintain accurate financial records and prevents duplicate or invalid invoice data from appearing in reports or integrations.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
| purchase_invoice_id | String | Unique identifier of the purchase invoice to be deleted. |
Query Parameters
This endpoint does not accept query parameters.
Request Body
This endpoint does not require a request body.
Response
If the deletion is successful, the server responds with HTTP status code 204 No Content, indicating that the purchase invoice has been successfully removed from the system. No response body is returned for this operation.