Skip to main content
POST
/
EVENTS.CAMPAIGN.VOUCHERS.GENERATION.COMPLETED
{
  "count": 5,
  "campaign": {
    "id": "camp_18NCNUkQIaXnqbHqhtQnt355",
    "name": "Test-campaign-applicable-to",
    "type": "AUTO_UPDATE",
    "active": true,
    "object": "campaign",
    "voucher": {
      "gift": null,
      "type": "DISCOUNT_VOUCHER",
      "discount": {
        "type": "PERCENT",
        "units": null,
        "effect": "APPLY_TO_ITEMS",
        "percent_off": 5,
        "amount_limit": 15000,
        "aggregated_amount_limit": 30000
      },
      "redemption": {
        "quantity": null,
        "redeemed_quantity": 0
      },
      "code_config": {
        "length": 1,
        "prefix": "Test-applicable-",
        "charset": "0123456789",
        "pattern": "#",
        "postfix": ""
      },
      "loyalty_card": null
    },
    "metadata": {},
    "auto_join": false,
    "join_once": false,
    "created_at": "2024-02-09T10:16:04.352Z",
    "category_id": null,
    "campaign_type": "DISCOUNT_COUPONS",
    "is_referral_code": false
  },
  "completed_at": "2024-02-09T10:16:04.787Z"
}

Response

200 - application/json

Indicates that the generation of campaign vouchers has been completed.

Event data object schema for campaign.vouchers.generation.completed.

campaign
object

Simplified campaign data.

count
integer

Number of generated vouchers.

completed_at
string<date-time>

Timestamp representing the date and time when the generation of the campaign vouchers was completed in the ISO 8601 format.

Example:

"2024-01-01T11:11:11.111Z"

I