{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sap-commerce-cloud/json-schema/sap-commerce-cloud-voucher-list-schema.json",
  "title": "VoucherList",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sap-commerce-cloud-promotions-api-openapi.yml#/components/schemas/VoucherList",
  "type": "object",
  "properties": {
    "vouchers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Voucher"
      }
    }
  },
  "$defs": {
    "Voucher": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "Voucher code"
        },
        "name": {
          "type": "string",
          "description": "Voucher name"
        },
        "description": {
          "type": "string",
          "description": "Voucher description"
        },
        "value": {
          "type": "number",
          "format": "double",
          "description": "Voucher value"
        },
        "valueFormatted": {
          "type": "string",
          "description": "Formatted voucher value"
        },
        "voucherCode": {
          "type": "string",
          "description": "Applied voucher code"
        },
        "freeShipping": {
          "type": "boolean",
          "description": "Whether voucher provides free shipping"
        }
      }
    }
  }
}