Coupons actions, commands, and pipelines
The following table describes the coupons actions, commands, and pipelines:
Action/Command/Pipeline |
Description |
|
Adds a coupon to a cart using a coupon code. It has the following parameters:
To add a coupon to a cart using a coupon code, this action, command and pipeline:
|
|
Generates a batch of private coupons, adding those coupons to a list of unallocated coupons associated to the promotion. Uses the prefix and suffix combined with a generated string to form a complete unique coupon code. It has the following parameters:
|
|
Creates a public coupon to be associated with a promotion. It has the following parameters:
|
|
Allocates a batch of coupons from a private coupon group associated with the promotion. This moves the list of coupons from the unallocated coupons list to the allocated coupons list. This returns a list of coupon codes that have been allocated. It has the following parameters:
|
|
Removes a coupon from the cart. It has the following parameters:
|