curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]
-X DELETE https://api.razorpay.com/v1/bills/bill_4a5e9ulyzk1mk2
{"status": "deleted"}
{
"error": {
"code": "UNAUTHORISED",
"description": "client not authorised to update",
"field": null,
"source": "business",
"step": "authentication",
"reason": "unauthorised",
"metadata": {}
}
}
Bills
Delete a Bill
Delete Bills with this endpoint.
DELETE
/
v1
/
bills
/
:bill_id
curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]
-X DELETE https://api.razorpay.com/v1/bills/bill_4a5e9ulyzk1mk2
{"status": "deleted"}
{
"error": {
"code": "UNAUTHORISED",
"description": "client not authorised to update",
"field": null,
"source": "business",
"step": "authentication",
"reason": "unauthorised",
"metadata": {}
}
}
Available in🇮🇳 India🇲🇾 Malaysia🇸🇬 Singapore🇺🇸 United States
Use this endpoint to delete a Bill.
curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]
-X DELETE https://api.razorpay.com/v1/bills/bill_4a5e9ulyzk1mk2
{"status": "deleted"}
{
"error": {
"code": "UNAUTHORISED",
"description": "client not authorised to update",
"field": null,
"source": "business",
"step": "authentication",
"reason": "unauthorised",
"metadata": {}
}
}
Path Parameters
string
required
The unique identifier of the bill that must be deleted.
Errors
client not authorised to update
client not authorised to update
Code:
401The client credentials are unauthorised to make changes to this bill.Solution: Use authorised credentials to make changes to the bill.Operation failed
Operation failed
Code:
500There is an internal server errorSolution: There is a server issue. Raise a support ticket with us to get this resolved.Was this page helpful?