Delete Purchase Refund: /purchase-refunds/{purchase_refund_id}
Purpose
This API is used to permanently delete an existing purchase refund record from the system. It allows authorized users to remove a refund that was created in error, duplicated, or is no longer needed. Once deleted, the purchase refund cannot be recovered, and all associated references to that refund are removed from the purchase history and related accounting records.
Use Case
A finance or purchasing administrator can use this API to delete a purchase refund that was issued incorrectly. For example, if a refund was processed twice for the same purchase order or if it was created under the wrong account. This ensures data accuracy and prevents discrepancies in financial reporting and reconciliation.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
| purchase_refund_id | String | Unique identifier of the purchase refund to be deleted. |
Query Parameters
No query parameters required for this endpoint.
Request Body
No request body is required for this endpoint.
Response
If the deletion request is successful, the API returns a 204 No Content response, indicating that the purchase refund has been deleted from the system. This response does not include a response body because the operation completes successfully without returning any additional data. The 204 status ensures that the deletion has been processed and that no further action is required.