Promotions actions, commands, and pipelines
Version:
The following sections describe actions, commands, and pipelines related to promotions.
Promotion books
Promotion books
The following table describes the actions, commands, and pipelines pertaining to promotion books:
| Action/Command/Pipeline | Description |
|---|---|
AddPromotionBookAddPromotionBookCommandAddPromotionBookPipeline | Adds a promotion book. Requires a unique promotion book name. |
EditPromotionBookEditPromotionBookCommandEditPromotionBookPipeline | Edits a promotion book. |
AssociateCatalogAssociateCatalogToBookCommandAssociateCatalogToBookPipeline | Associates a promotion book to a specific catalog. |
DisassociateCatalogDisassociateCatalogFromBookCommandDisassociateCatalogFromBookPipeline | Disassociates a promotion book from a specific catalog. |
GetPromotionBookAssociatedCatalogsGetBookAssociatedCatalogsCommandGetBookAssociatedCatalogsPipeline | Retrieves all catalogs associated with a promotion book. |
Promotions
Promotions
The following table describes the actions, commands, and pipelines pertaining to promotions:
| Action/Command/Pipeline | Description |
|---|---|
AddPromotionAddPromotionCommandAddPromotionPipeline | Adds a promotion. Requires the parent promotion book name and a unique promotion name. |
EditPromotionEditPromotionCommandEditPromotionPipeline | Edits a promotion. The promotionâs approval status must not be Approved. |
DuplicatePromotionDuplicatePromotionCommandDuplicatePromotionPipeline | Duplicates a promotion. |
RequestPromotionApprovalSetApprovalStatusCommand | Changes a promotionâs approval status from Draft to ReadyForApproval. |
ApprovePromotionSetApprovalStatusCommand | Changes a promotion's approval status from ReadyForApproval to Approve. |
RejectPromotionSetApprovalStatusCommand | Changes a promotionâs approval status from ReadyForApproval to Draft. |
RetractPromotionSetApprovalStatusCommand | Changes a promotionâs approval status from Approved back to Draft. Applicable only before the promotion is made fully active. |
DisablePromotionDisablePromotionCommandDisablePromotionPipeline | Disables an approved promotion. Applicable when the promotion is approved and active. |
DeletePromotionDeletePromotionCommandDeletePromotionPipeline | Deletes a promotion. The promotionâs approval status must not be Approved. |
EvaluatePromotionsQualificationsCommandEvaluatePromotionsQualificationsPipeline | These are used as part during the runtime of the promotions service. |
DiscoverPromotionsPipeline | This is used as part during the runtime of the promotions service. |
FilterQualifyingPromotionsPipeline | Searches for promotions in the system. |
Note
ApplyPromotionsBenefitsCommand and the corresponding pipeline are not used.
Qualifications
Qualifications
The following table describes the actions, commands, and pipelines pertaining to the Qualification component:
| Action/Command/Pipeline | Description |
|---|---|
SelectQualificationGetOperatorsCommandGetConditionsCommand | Selects a qualification from all the qualifications available in the system. This action is implemented together with the AddQualification. |
AddQualificationAddQualificationCommandAddQualificationPipeline | Adds the selected qualification to a promotion. The promotionâs approval status must be Draft. |
EditQualificationEditQualificationCommandEditQualificationPipeline | Edits a promotionâs qualification. The promotionâs approval status must be Draft. |
DeleteQualificationDeleteQualificationCommandDeleteQualificationPipeline | Removes a qualification from a promotion. The promotionâs approval status must be Draft. All qualifications can be deleted from a promotion only if the promotion has no benefits. |
Benefits
Benefits
The following table describes the promotions actions, commands, and pipelines pertaining to the Benefit component:
| Action/Command/Pipeline | Description |
|---|---|
SelectBenefitGetOperatorsCommandGetActionsCommand | Selects a benefit from all the benefits available in the system. |
AddBenefit AddBenefitCommandAddBenefitPipeline | Adds the selected benefit to a promotion. The promotionâs approval status must be Draft. The promotion must have at least one qualification. |
EditBenefitEditBenefitCommandAddBenefitPipeline | Edits a promotionâs benefit. The promotionâs approval status must be Draft. |
DeleteBenefitDeleteBenefitCommandDeleteBenefitPipeline | Removes a benefit from a promotion. The promotionâs approval status must be Draft. |
Items
Items
The following table describes the promotions actions, commands, and pipelines pertaining to the Item component:
| Action/Command/Pipeline | Description |
|---|---|
AddItemAddPromotionItemCommandAddPromotionItemPipeline | Adds an Item to a promotion. An item must be unique within a promotion. The promotionâs approval status must be Draft. |
RemoveItemRemovePromotionItemCommandRemovePromotionItemPipeline | Removes an item from a promotion. The promotionâs approval status must be Draft. |
If you have suggestions for improving this article, let us know!