Documents
Get document
Changed onRetrieve a document.
get/v2/documents/{documentId}
Request
- Base URLhttps://api-ext-sboxmeta.partners.spotnana.com
- AuthHTTP bearer
Path parameters
documentIdstring uuid required
Document Id
Response
OK
Example response
{
"document": {
"url": "https://s3.amazonaws.com/bucket-name/folder-name/file-name",
"documentId": "f49d00fe-1eda-4304-ba79-a980f565281d",
"documentMetadata": {
"documentType": "VISA",
"entityType": "PNR",
"entityId": "123124",
"entityMetadata": {
"pnrMetadata": {
"flightMetadata": {
"flightId": "CgNERU4SA1NGTxoKNTQ1NzI5ODcxMQ"
}
},
"invoiceMetadata": {
"invoiceNumber": "SPOT-0001",
"invoiceType": "FARE_INVOICE"
},
"travelType": "AIR"
},
"name": "BoardingPass.pdf"
}
}
}Changes
- warning
added the new
AI_PLATFORM_ATTACHMENTSenum value to the//response property for the response status
- warning
- warning
added the new
AI_SKILL_FILEenum value to the//response property for the response status
- warning