Delete Invoice API
The following endpoint retrieves the balance in the durianpay account.
/invoices/:id
Example
curl -u [Base64({Your_Server_Key}:)] \
-X DELETE https://api.durianpay.id/v1/invoices/inv_XXXXX \
-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