openapi: 3.1.0 info: title: Airwallex Open Authentication API version: v1 description: 'Best-effort OpenAPI 3.1 representation of the Airwallex REST API derived from https://www.airwallex.com/docs/api. Airwallex is a global payments and financial infrastructure platform. Coverage in this best-effort spec focuses on the Payment Acceptance and related core resources: payment intents, customers, refunds, payouts, transfers, balances, beneficiaries and account authentication. Endpoints accept and return JSON. ' contact: name: Airwallex url: https://www.airwallex.com/docs/api servers: - url: https://api.airwallex.com description: Airwallex production - url: https://api-demo.airwallex.com description: Airwallex demo / sandbox security: - BearerAuth: [] - ClientIdHeader: [] ApiKeyHeader: [] tags: - name: Authentication paths: /api/v1/authentication/login: post: tags: - Authentication summary: Obtain access token description: 'Exchange the client_id and api_key (sent as `x-client-id` and `x-api-key` headers) for a short-lived bearer access token used in subsequent calls. ' operationId: login responses: '201': description: Access token returned components: securitySchemes: BearerAuth: type: http scheme: bearer description: 'Bearer access token obtained via POST /api/v1/authentication/login using `x-client-id` and `x-api-key` request headers. ' ClientIdHeader: type: apiKey in: header name: x-client-id ApiKeyHeader: type: apiKey in: header name: x-api-key