cURL
curl --request DELETE \ --url https://app.getswipe.in/api/partner/v2/doc/{doc_hash_id} \ --header 'Authorization: Bearer <token>'
{ "success": true, "message": "Message", "error_code": "", "errors": {}, "data": { "hash_id": "SL123" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The hash id of the document to be cancelled
Set to 1 if you want to cancel a document with e-invoice
Success
The response is of type object.
object