Delete document
Use this endpoint to delete your document by using document hash.
URL Config
Endpoint: https://api-stage.dps.io/api
APIVersion: v1
route: documents
path: <YOUR_DOCUMENT_HASH>
Method
DELETE
URL
https://api-stage.dps.io/api/v1/documents/<YOUR_DOCUMENT_HASH>
Request Headers
{
"Content-Type": "application/json",
"x-api-key": "<YOUR_API_KEY>",
"ShipperHash": "<YOUR_SHIPPER_HASH>"
}
Request Body
Curl request
curl --location --request DELETE 'https://api-stage.dps.io/api/v1/documents/<YOUR_DOCUMENT_HASH>' \
--header 'x-api-key: <YOUR_API_KEY>' \
--header 'ShipperHash: <YOUR_SHIPPER_HASH>'
Response
Your document has been deleted successfully