{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/clyde/main/json-schema/clyde-post-vouchers-bulk-request-schema.json",
  "title": "PostVouchersBulkRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/clyde-openapi-generated.yml#/components/schemas/PostVouchersBulkRequest",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "description": "The top-level object containing all of the request data"
    },
    "data.type": {
      "type": "string",
      "description": "type of the resource, should be \"voucher\""
    },
    "data.attributes": {
      "type": "object"
    },
    "data.attributes.vouchers": {
      "type": "array",
      "description": "Array of voucher objects to create"
    },
    "data.attributes.vouchers[].code": {
      "type": "string",
      "description": "Voucher code"
    },
    "data.attributes.vouchers[].productSku": {
      "type": "string",
      "description": "Product SKU associated with the voucher"
    },
    "data.attributes.vouchers[].value": {
      "type": "number",
      "description": "Value of the voucher"
    },
    "data.attributes.vouchers[].description": {
      "type": "string",
      "description": "Description of the voucher"
    },
    "data.attributes.vouchers[].expiresDate": {
      "type": "string",
      "description": "Expiration date of the voucher"
    },
    "data.attributes.vouchers[].startDate": {
      "type": "string",
      "description": "Start date of the voucher"
    }
  },
  "required": [
    "data"
  ]
}