openapi: 3.2.0 info: title: Amex Gbt Pos Iata Controller API version: v1.0 description: 'Operations tagged pos-iata-controller across 2 of this provider''s published API definitions: amex-gbt-reporting-api-openapi.json, amex-gbt-service-bi-openapi.json. Each path carries the servers of the definition it was published in.' servers: - url: https://apis.egencia.com/bi/api description: Generated server url tags: - name: pos-iata-controller paths: /v1/egencia_iata: get: description: "

Allows clients to access the IATA codes based on the Point of Sales for different transactions\n obtained from the Transaction API response.

\n
\n

Request Specifications:

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
AttributeRequiredTypeDescription
\n pos\n OptionalStringPoint of Sale for which the user wants to get the IATA code.
\n\nExamples:
\n\n

Fetching IATA codes for specified Point of Sale

\n
\n
\n\n  GET https://apis.egencia.com/bi/api/v1/egencia_iata?pos=France\n   -> 200 OK\n   [\n       {\n           \"pos\":\"France\",\n           \"iata\":\"1234567\"\n       }\n   ]\n\n
\n
\n

Fetching IATA codes for all available Point of Sales

\n
\n\n  GET https://apis.egencia.com/bi/api/v1/egencia_iata\n   -> 200 OK\n   [\n       {\n           \"pos\":\"France\",\n           \"iata\":\"1234567\"\n       },\n       {\n           \"pos\":\"India\",\n           \"iata\":\"563489\"\n       },\n       {\n           \"pos\":\"United States of America\",\n           \"iata\":\"824485\"\n       },\n       {\n           \"pos\":\"United Kingdom\",\n           \"iata\":\"4593557\"\n       },\n       {\n           \"pos\":\"Australia\",\n           \"iata\":\"45983645\"\n       }\n       {\n           \"pos\":\"Denmark\",\n           \"iata\":\"9876543\"\n       },\n       {\n           \"pos\":\"Norway\",\n           \"iata\":\"609843\"\n       }\n   ]\n\n
\n
\n

This API will return the Point of Sales and their corresponding IATA Codes

" operationId: getIATACode parameters: - description: Point of Sale code to look up. Returns all Point of Sales if not specified example: US in: query name: pos required: false schema: type: string responses: '200': content: application/json: schema: type: array items: $ref: '#/components/schemas/IATA_Code_response' description: 'OK : IATA code(s) returned successfully' '400': content: application/json: schema: type: array items: $ref: '#/components/schemas/IATA_Code_response' description: 'Bad Request : invalid query parameter' '401': content: application/json: schema: type: array items: $ref: '#/components/schemas/IATA_Code_response' description: 'Unauthorized : authentication token empty, invalid or expired' '403': content: application/json: schema: type: array items: $ref: '#/components/schemas/IATA_Code_response' description: 'Forbidden : user does not have the permission to access data' '500': content: application/json: schema: type: array items: $ref: '#/components/schemas/IATA_Code_response' description: 'Internal Server Error : unable to process request' security: - OAuth2: [] summary: Gets IATA code for the specified Point of Sale or all Point of Sales if none specified tags: - pos-iata-controller servers: - url: https://apis.egencia.com/bi/api description: Generated server url components: schemas: IATA_Code_response: description: IATA Code API response based on provided Point of Sale properties: iata: type: string description: IATA Code for the particular Point of Sale pos: type: string description: Point of Sale securitySchemes: OAuth2: flows: clientCredentials: tokenUrl: https://apis.egencia.com/auth/v1/token type: oauth2 x-refined-from: - amex-gbt-reporting-api-openapi.json - amex-gbt-service-bi-openapi.json