Topic 7
Coupon Use (topic 7) is triggered when a linked coupon is consumed.
Payload
Loyale sends an HTTP POST whose JSON body is a CouponsLinkedResultView.
| Property | Type | Notes |
|---|---|---|
coupon | CouponResultView | null | Coupon definition |
id | uuid | Linked-coupon identifier |
customerId | string | null | |
usesLeft | integer | |
favorite | boolean | |
barCode | string | null | |
rewardId | uuid | |
createdDate | date-time | UTC |
updatedDate | date-time | UTC |
couponId | string | null | |
from | date-time | |
to | date-time | null | |
isUsed | boolean | |
createdBy | string | null | |
updatedBy | string | null | |
customer | BasicCustomerModel | null | |
state | string | null | |
isValid | boolean | Computed from usesLeft and validity dates |
metadata | object<string,string> | Included when metadata has been hydrated |
isTargeted | boolean |
Updated 5 days ago