Documents
Upload a document
Changed onUpload a document for a specific entity type (e.g., a PNR).
post/v2/documents
Request
- Base URLhttps://api-ext-sboxmeta.partners.spotnana.com
- AuthHTTP bearer
Request body multipart/form-data
Example request
{
"documentMetadata": {
"documentType": "VISA",
"entityType": "PNR",
"entityId": "123124",
"entityMetadata": {
"pnrMetadata": {
"flightMetadata": {
"flightId": "CgNERU4SA1NGTxoKNTQ1NzI5ODcxMQ"
}
},
"invoiceMetadata": {
"invoiceNumber": "SPOT-0001",
"invoiceType": "FARE_INVOICE"
},
"travelType": "AIR"
},
"name": "BoardingPass.pdf"
}
}Response
OK
Example response
{
"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 - info
added the new
AI_PLATFORM_ATTACHMENTSenum value to the request property/
- warning
- warning
added the new
AI_SKILL_FILEenum value to the/response property for the response status - info
added the new
AI_SKILL_FILEenum value to the request property/
- warning