Last updated

Deleting a document

The steps below explain how to delete a document from the Spotnana platform.

StepNameEndpoint Details
List documents/v2/documentsList all the uploaded documents for a specific entityType and entityId.

URL path requires: The entityType (e.g., PNR if you're retrieving documents for a booking) and the entityId (e.g., the PNR ID of the booking).

Response will contain: The list of documents uploaded for the entity along with the documentId assigned to each document.

Other APIs will use: documentId of the document that you need to delete.
Delete a document/v2/documents/{documentId}Delete a document.

URL path requires: The documentId from step 1.

You'll receive a 200 OK response after a successful deletion.