Delete Invoice API
The following endpoint deletes a single Invoice
/invoices/:id
Path Attributes
id
String
Mandatory
Unique identifier of the Invoice to be deleted
Query Attributes
Example
curl -X DELETE \
https://api.durianpay.id/v1/invoices/inv_h73BiiJVS42949 \
-H 'authorization: [Base64({Your_Server_Key}:)]' \
-H 'content-type: application/json' \
Response Code
200 - Success
1 2 3 4 5
{ "id": "inv_h73BiiJVS42949", "message": "invoice deleted successfully", "response_code": "0000" }
401 - Unauthorized Access
400 - Bad Request
404 - Not Found
422 - Unprocessable Entity
500 - Internal Server Error