WEBHOOK
coupon.archived
{
  "type": "coupon.archived",
  "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.archived"
messageId
string

Unique webhook message ID.

traceId
string

Correlation ID for tracing.

entityId
string

Coupon ID.

name
string

Coupon name.

description
string

Coupon description.

couponType
string

Discount type (e.g.

status
string

Status at time of archiving.

discountValue
number

Numeric value for the discount.

createdAt
string<date-time>

Creation timestamp.

updatedAt
string<date-time>

Last update timestamp.