DELETE
/
v2
/
doc
/
{doc_hash_id}
curl --request DELETE \
  --url https://app.getswipe.in/api/partner/v2/doc/{doc_hash_id} \
  --header 'Authorization: <api-key>'
{
  "success": true,
  "message": "Message",
  "error_code": "",
  "errors": {},
  "data": {
    "hash_id": "SL123"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

doc_hash_id
string
required

The hash id of the document to be cancelled

Query Parameters

cancel_einvoice
integer
default:0

Set to 1 if you want to cancel a document with e-invoice

Response

200
application/json
Success
success
boolean
default:true
Example:

true

message
string

Success Message

Example:

"Message"

error_code
string

Error Code

Example:

""

errors
object

Error details

data
object