Coupons actions, commands, and pipelines
Version:
The following table describes the coupons actions, commands, and pipelines:
| Action/Command/Pipeline | Description |
|---|---|
AddCouponAddCouponCommandAddCouponToCartPipeline | 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:
|
AddPrivateCouponAddPrivateCouponCommandAddPrivateCouponPipeline | 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:
|
AddPublicCouponAddPublicCouponCommandAddPublicCouponPipeline | Creates a public coupon to be associated with a promotion. It has the following parameters:
|
NewAllocationNewCouponAllocationCommandNewCouponAllocationPipeline | 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:
|
RemoveCouponRemoveCouponCommandRemoveCouponFromCartPipeline | Removes a coupon from the cart. It has the following parameters:
|
If you have suggestions for improving this article, let us know!