Skip to content

List documents

Request

List all the uploaded documents for a specific entity ID and type.

Security
Bearer
Query
entityTypestring(EntityType)required

Entity type against which document is associated.

Enum:"PNR""COMPANY""AIR_ITINERARY""EVENT""LOCATION_IMAGE""AIR_COMMISSION_CONTRACT"
Example:entityType=PNR
entityIdstringrequired

Entity Id for the given entity type.

Example:entityId=123124
curl -i -X GET \
  'https://api-ext-sboxmeta.partners.spotnana.com/v2/documents?entityType=PNR&entityId=123124' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

OK

Bodyapplication/json
documentsArray of objects(Document)required

List of documents.

Response
{ "documents": [ { … } ] }