{
"campaign": {
"id": "camp_iRMdcq07g9W4dOSRXuTovupi",
"name": "Spring Discounts",
"type": "AUTO_UPDATE",
"active": true,
"object": "campaign",
"voucher": {
"type": "DISCOUNT_VOUCHER",
"discount": {
"type": "PERCENT",
"effect": "APPLY_TO_ORDER",
"percent_off": 10,
"amount_limit": 3000,
"percent_off_formula": "IF(ORDER_AMOUNT > 150;15;10)"
},
"redemption": {
"quantity": 1
},
"start_date": "2024-03-01T00:00:00.000Z",
"code_config": {
"length": 3,
"prefix": "SPRING-2024-",
"charset": "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
"pattern": "###"
},
"expiration_date": "2024-03-31T00:00:00.000Z",
"is_referral_code": false
},
"category": "Star Platinum",
"metadata": {},
"auto_join": false,
"join_once": false,
"protected": false,
"categories": [
{
"id": "cat_0e156dab8f2e43873a",
"name": "Star Platinum",
"object": "category",
"hierarchy": 10,
"created_at": "2024-01-03T10:03:24.092Z"
}
],
"created_at": "2024-02-21T10:01:24.102Z",
"start_date": "2024-03-01T00:00:00.000Z",
"category_id": "cat_0e156dab8f2e43873a",
"description": "Spring 2024 discount",
"campaign_type": "DISCOUNT_COUPONS",
"vouchers_count": 0,
"creation_status": "IN_PROGRESS",
"expiration_date": "2024-03-31T00:00:00.000Z",
"validity_day_of_week": [
5,
6,
0
],
"vouchers_generation_status": "IN_PROGRESS",
"use_voucher_metadata_schema": true
}
}WEBHOOK
EVENTS.CAMPAIGN.CREATED
{
"campaign": {
"id": "camp_iRMdcq07g9W4dOSRXuTovupi",
"name": "Spring Discounts",
"type": "AUTO_UPDATE",
"active": true,
"object": "campaign",
"voucher": {
"type": "DISCOUNT_VOUCHER",
"discount": {
"type": "PERCENT",
"effect": "APPLY_TO_ORDER",
"percent_off": 10,
"amount_limit": 3000,
"percent_off_formula": "IF(ORDER_AMOUNT > 150;15;10)"
},
"redemption": {
"quantity": 1
},
"start_date": "2024-03-01T00:00:00.000Z",
"code_config": {
"length": 3,
"prefix": "SPRING-2024-",
"charset": "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
"pattern": "###"
},
"expiration_date": "2024-03-31T00:00:00.000Z",
"is_referral_code": false
},
"category": "Star Platinum",
"metadata": {},
"auto_join": false,
"join_once": false,
"protected": false,
"categories": [
{
"id": "cat_0e156dab8f2e43873a",
"name": "Star Platinum",
"object": "category",
"hierarchy": 10,
"created_at": "2024-01-03T10:03:24.092Z"
}
],
"created_at": "2024-02-21T10:01:24.102Z",
"start_date": "2024-03-01T00:00:00.000Z",
"category_id": "cat_0e156dab8f2e43873a",
"description": "Spring 2024 discount",
"campaign_type": "DISCOUNT_COUPONS",
"vouchers_count": 0,
"creation_status": "IN_PROGRESS",
"expiration_date": "2024-03-31T00:00:00.000Z",
"validity_day_of_week": [
5,
6,
0
],
"vouchers_generation_status": "IN_PROGRESS",
"use_voucher_metadata_schema": true
}
}The
EVENTS.CAMPAIGN.CREATED event indicates that a new campaign was created.
The webhook provides, among others, the following details:
- Campaign ID,
- Campaign name
- Campaign type,
- Creation date,
- Other relevant details.
This page documents only the event. If you need more details about the webhook payload data that includes this event, go to Introduction to webhooks page.
Body
application/json
Response
Webhook accepted
Last modified on May 19, 2026
Was this page helpful?
⌘I

