{
"event": {
"id": "<string>",
"type": "coupon.created",
"data": {
"coupon": {
"type": "percentage",
"id": "<string>",
"percent": 123,
"name": "<string>",
"code": "<string>",
"title": "<string>",
"public": true,
"max_redemptions": 123,
"months": 123,
"auto_apply_to": {
"unit_types": true,
"protections": true,
"products": true,
"subscriptions": true
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
},
"meta": {
"curies": "<unknown>"
}
}
}Webhooks
coupon.created
Triggered when a coupon is created.
WEBHOOK
coupon.created
{
"event": {
"id": "<string>",
"type": "coupon.created",
"data": {
"coupon": {
"type": "percentage",
"id": "<string>",
"percent": 123,
"name": "<string>",
"code": "<string>",
"title": "<string>",
"public": true,
"max_redemptions": 123,
"months": 123,
"auto_apply_to": {
"unit_types": true,
"protections": true,
"products": true,
"subscriptions": true
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
},
"meta": {
"curies": "<unknown>"
}
}
}Body
application/json
Coupon Created Webhook Body
Show child attributes
Show child attributes
Response
Return a 2XX (200, 201, ...) status to indicate that the data was received successfully.
Was this page helpful?