APIs for managing and performing operations on documents related to trips and bookings.
Metadata related to document.
Document type.
Entity type against which the document is to uploaded.
curl -i -X POST \
https://apis.spotnana.com/v2/documents \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: multipart/form-data' \
-F 'documentMetadata[documentType]=VISA' \
-F 'documentMetadata[entityType]=PNR' \
-F 'documentMetadata[entityId]=123124' \
-F 'documentMetadata[entityMetadata][pnrMetadata][flightMetadata][flightId]=CgNERU4SA1NGTxoKNTQ1NzI5ODcxMQ' \
-F 'documentMetadata[entityMetadata][invoiceMetadata][invoiceNumber]=SPOT-0001' \
-F 'documentMetadata[entityMetadata][invoiceMetadata][invoiceType]=FARE_INVOICE' \
-F 'documentMetadata[entityMetadata][travelType]=AIR' \
-F 'documentMetadata[name]=BoardingPass.pdf' \
-F file=string
OK
Unique identifier of the document.
Metadata related to document.
Document type.
Entity type against which the document is to uploaded.
{ "documentId": "f49d00fe-1eda-4304-ba79-a980f565281d", "documentMetadata": { "documentType": "VISA", "entityType": "PNR", "entityId": "123124", "entityMetadata": { … }, "name": "BoardingPass.pdf" } }
curl -i -X GET \
'https://apis.spotnana.com/v2/documents?entityId=123124&entityType=PNR' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
OK
List of documents.
S3 location of the document.
Unique identifier of the document.
Metadata related to document.
Document type.
Entity type against which the document is to uploaded.
Entity Id for the given entity type.
{ "documents": [ { … } ] }