Campaign
Was this helpful?
Was this helpful?
Campaign
List products for a campaign
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a campaign.
^[A-Za-z0-9-_]+
Reference to a specific page in a result set.
The number of items per page in a result set.
Defines which field the resource list is sorted by.
ENUM | Description |
---|---|
ASC | Sort in ascending order |
DESC | Sort in descending order |
ENUM | Description |
---|---|
INCLUDE | Query for included products in campaign |
EXCLUDE | Query for excluded products in campaign |
Example response
Get list of campaigns
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a specific page in a result set.
The number of items per page in a result set.
Defines which field the resource list is sorted by.
ENUM | Description |
---|---|
ASC | Sort in ascending order |
DESC | Sort in descending order |
Reference to a name
Reference to a display name
Reference to a campaign code
Reference to a valid from
Reference to a valid to
ENUM | Description |
---|---|
CAMPAIGN | Normal campaign with rules set |
PRICELIST | A campaign that includes a pricelist. No rules applies |
ENUM | Description |
---|---|
CHEAPEST_PRODUCT | Cheapest product will be discounted |
QUALIFIED_PRODUCT | All qualified products will be discounted |
ORDER_DISCOUNT | An order discount will be added to the order |
Example response
Search for campaigns
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a specific page in a result set.
The number of items per page in a result set.
Defines which field the resource list is sorted by.
ENUM | Description |
---|---|
ASC | Sort in ascending order |
DESC | Sort in descending order |
ENUM | Description |
---|---|
CHEAPEST_PRODUCT | Cheapest product will be discounted |
QUALIFIED_PRODUCT | All qualified products will be discounted |
ORDER_DISCOUNT | An order discount will be added to the order |
ENUM | Description |
---|---|
CAMPAIGN | Normal campaign with rules set |
PRICELIST | A campaign that includes a pricelist. No rules applies |
Example response
Create new campaign
Reference to a tenant.
^[A-Za-z0-9-_]+
ENUM | Description |
---|---|
CAMPAIGN | Normal campaign with rules set |
PRICELIST | A campaign that includes a pricelist. No rules applies |
ENUM | Description |
---|---|
CHEAPEST_PRODUCT | Cheapest product will be discounted |
QUALIFIED_PRODUCT | All qualified products will be discounted |
ORDER_DISCOUNT | An order discount will be added to the order |
A quantity that qualifies for the campaign to apply.
If both quantity and amount are set, both criteria must be met.
An amount that qualifies for the campaign to apply.
If both quantity and amount are set, both criteria must be met.
Discount amount given when the criteria are met.
Discount percent given when the criteria are met.
The max number of times the campaign can be applied to the order
^[A-Za-z0-9-_]+
Priority for the campaign if more than one campaign applies. Lower number = higher priority.
^[A-Za-z0-9-_]+
If campaignCode is set, it means that this campaign has to be manually actived on an order via PUT on the order
Flag to indicate that this campaign should not be combined with other campaigns. If any orderlines matches this campaign and priority is set to 1, no other campaigns will be considered.
Example response
Update an existing campaign
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a campaign.
^[A-Za-z0-9-_]+
This request updates an existing campaign.
IMPORTANT! The request must include all storeUids the campaign is valid for.
ENUM | Description |
---|---|
NEW | Campaign is in a modeling state. Can be modified |
ACTIVE | Campaign is active, and is considered when making sales operations. Campaign can not be modified |
CLOSED | Campaign is closed. |
^[A-Za-z0-9-_]*
ENUM | Description |
---|---|
CHEAPEST_PRODUCT | Cheapest product will be discounted |
QUALIFIED_PRODUCT | All qualified products will be discounted |
ORDER_DISCOUNT | An order discount will be added to the order |
Example response
Set selections on a campaign
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a campaign.
^[A-Za-z0-9-_]+
This request has 3 sections:
create: A selection to create in the campaign delete: A selection to delete from campaign.
This request contains a selection of product groups, brands and exact productUids to include or exclude in a campaign.
This request contains a selection of product groups, brands and exact productUids to include or exclude in a campaign.
Example response