WEBHOOK
coupon.created
{
  "type": "coupon.created",
  "messageId": "a6ce...",
  "traceId": "549a...",
  "entityId": "coupon-id",
  "name": "best-coupon",
  "description": "best coupon ever",
  "couponType": "PERCENTAGE",
  "status": "ACTIVE",
  "discountValue": 20,
  "createdAt": "2022-04-10T00:00:00.001Z",
  "updatedAt": "2022-04-10T00:00:00.001Z"
}

Body

application/json
type
string

Event type discriminator.

Allowed value: "coupon.created"
messageId
string

Unique webhook message ID.

traceId
string

Correlation ID for tracing.

entityId
string

Unique coupon identifier in Stigg.

name
string

Human-readable coupon name.

description
string

Coupon description.

couponType
string

Discount type (e.g.

status
string

Coupon lifecycle status (e.g.

discountValue
number

Numeric value of the discount (interpretation depends on type).

createdAt
string<date-time>

Creation timestamp.

updatedAt
string<date-time>

Last update timestamp.