Amadeus · Schema

Payment

form of payment (mandatory in case of `acceptedPayments`/`methods`)

TravelTravel TechnologyReservationsFlightsHotelsAirlinesHospitalityTours and ActivitiesCars and TransfersDestination ContentItinerary ManagementTrip PlanningArtificial IntelligenceMarket Insights

Properties

Name Type Description
id integer
method string The Payment Methods: * creditCard (CC) - Payment Cards in `creditCards` are accepted
card object payment card details (mandatory in case of `method` creditCard)
View JSON Schema on GitHub

JSON Schema

hotel-booking-v1-payment-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amadeus/refs/heads/main/json-schema/hotel-booking-v1-payment-schema.json",
  "title": "Payment",
  "description": "form of payment (mandatory in case of `acceptedPayments`/`methods`)",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "example": 1
    },
    "method": {
      "type": "string",
      "example": "creditCard",
      "enum": [
        "creditCard"
      ],
      "description": "The Payment Methods:\n * creditCard (CC) - Payment Cards in `creditCards` are accepted           "
    },
    "card": {
      "type": "object",
      "title": "Card",
      "description": "payment card details (mandatory in case of `method` creditCard)",
      "required": [
        "vendorCode",
        "cardNumber",
        "expiryDate"
      ],
      "properties": {
        "vendorCode": {
          "type": "string",
          "pattern": "^[A-Z]{2}$",
          "minLength": 2,
          "maxLength": 2,
          "example": "VI",
          "description": "card type (CA, VI, AX, DC...)\nExamples:\n  * CA - MasterCard (warning: use it instead of MC/IK/EC/MD/XS)\n  * VI - Visa\n  * AX - American Express\n  * DC - Diners Club\n  * AU - Carte Aurore\n  * CG - Cofinoga\n  * DS - Discover\n  * GK - Lufthansa GK Card\n  * JC - Japanese Credit Bureau\n  * TC - Torch Club\n  * TP - Universal Air Travel Card\n  * BC - Bank Card\n  * DL - Delta\n  * MA - Maestro\n  * UP - China UnionPay   \n  * VE - Visa Electron\n"
        },
        "cardNumber": {
          "type": "string",
          "description": "card number",
          "pattern": "^[0-9]*$",
          "minLength": 2,
          "maxLength": 22,
          "example": 1
        },
        "expiryDate": {
          "type": "string",
          "description": "Expiration Date YYYY-MM",
          "pattern": "^[0-9]{4}-[0-9]{2}$",
          "minLength": 7,
          "maxLength": 7,
          "example": "2019-01"
        }
      }
    }
  },
  "required": [
    "method"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/hotel-booking-v1-payment"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.