Delete Invoice

delete
Delete Invoice

https://api.payant.ng/invoices/:reference_code
Request
Response
Path Parameters
reference_code
required
string
Invoice reference code
Headers
Authorization
required
string
Payant secret key prefixed by "Bearer "
200: OK
‚Äč

Request

curl https://api.payant.ng/invoices/j9CbiTN0oJe4vWhglyS2 \
-H "Content-Type: application/json" \
-H "Authorization: Bearer SECRET_KEY" \
-X DELETE

Response

{
"status": "success",
"message": "Invoice deleted successfully."
}