context customer event

grantedCoupon

Type: object

Customer has beed granted a coupon

Name Type Description Example
code string Code or Id identifying the coupon "example"
redeemDate string Last date in which coupon has been used
format: date-time
"1970-01-01T12:00:00Z"
startValidityDate string Required.
format: date-time
"1970-01-01T12:00:00Z"
redemptionDate string Last date in which is possible to use the coupon
format: date-time
"1970-01-01T12:00:00Z"
campaignId string An ID used to identify the marketing campaign which the coupon is related to "example"
campaignName string Name of the campaign related to the coupon "example"
campaignDescription string Description of the campaign related to the coupon "example"
status string Current status of the coupon "example"
type string Indication about the type of coupon "example"
redeemedAmount number Amount of the coupon used so far 42.0
totalAmount number Required. Total amount available in the coupon 42.0
remainingAmount number Amount of the coupon that is still available 42.0
deliveryChannel object {...}
deliveryMedium object {...}
category array[string] ["example", "example"]
extraProperties object Extra pieces of information you can tie to events you track {...}

deliveryChannel

Type: object

 

Name Type Description Example
id string Required. An ID used to identify the channel used to delivery the coupon "example"
name string Name of the channel related to the coupon "example"
description string Description of the channel related to the coupon "example"

deliveryMedium

Type: object

 

Name Type Description Example
id string Required. An ID used to identify the medium used to delivery the coupon "example"
name string Name of the meidum related to the coupon "example"
description string Description of the medium related to the coupon "example"

extraProperties

Type: object

Extra pieces of information you can tie to events you track