{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amadeus/refs/heads/main/json-schema/transfer-book-discount-code-schema.json",
  "title": "DiscountCode",
  "description": "discount object that gives access to negotiated prices",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "describes type of discount",
      "enum": [
        "CD",
        "PC"
      ],
      "example": "CD"
    },
    "value": {
      "type": "string",
      "description": "discount code value. \n\"CD\" type stands for corporate discount code - a number generated by provider in case of\n  special agreement with a given subscriber is passed (airlines, TMC,\n  corporation\u2026). It gives to subscriber access to negotiated prices for\n  transfer      \n\"PC\" - for promotional/campaign discount code - a voucher code generated by the\n  provider valid for a given period of time or a given number of usage.\n  The code is sent by customer to provider in order to get a discounted\n  price.",
      "example": "string-value"
    }
  }
}