{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/brevo/main/json-schema/brevo-reward-create-voucher-response-200-schema.json",
  "title": "Reward_createVoucher_Response_200",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brevo-reward-api-openapi.yml#/components/schemas/Reward_createVoucher_Response_200",
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "Generated code"
    },
    "consumedAt": {
      "type": "string",
      "description": "Timestamp for when this reward was consumed"
    },
    "contactId": {
      "type": "integer",
      "format": "int64",
      "description": "Id of the contact that attributed the reward"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp for when this reward was created"
    },
    "expirationDate": {
      "type": "string",
      "format": "date-time",
      "description": "Expiration date of the reward"
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier"
    },
    "loyaltyProgramId": {
      "type": "string",
      "description": "Loyalty Program Id to which attributed reward belongs"
    },
    "meta": {
      "type": "object",
      "additionalProperties": {
        "description": "Any type"
      },
      "description": "Additional data to define the reward"
    },
    "rewardId": {
      "type": "string",
      "description": "Unique identifier for the reward"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp for when this reward was updated"
    },
    "value": {
      "type": "number",
      "format": "double",
      "description": "Value of the selected reward config"
    },
    "validFrom": {
      "type": "string",
      "format": "date-time",
      "description": "Date from which the voucher becomes valid"
    }
  }
}