Document V2
Cancel a document
Changed onCancels an active document by its hash_id. The document remains in your account with a cancelled status.
delete/v2/doc/{doc_hash_id}
Request
- Base URLhttps://app.getswipe.in/api/partner
- URLhttps://app.getswipe.in/api/partner/v2/doc/{doc_hash_id}
- AuthHTTP bearer
Path parameters
doc_hash_idstring required
The hash id of the document to be cancelled
Query parameters
cancel_einvoiceinteger
Set to 1 if you want to cancel a document with e-invoice
Response
Success
Example response
{
"success": true,
"message": "Message",
"data": {
"hash_id": "SL123"
}
}Changes
- info
api operation id
v2_delete_invoiceremoved and replaced withdelete_invoice
- info