Facility discounts
Facility discounts determine the value by which the sales price of the facility's listings is reduced for a specific group. Discounts can be defined for a facility, a group of facilities or a group of articles (category). The scope of application can be extended or reduced with the help of AND, OR, NOT operators. The contexts set in the discount (e.g., facility groups) are matched with the corresponding context of the listing attributes. If all contexts were matching, the discount would be applied to the sales price of the item.
Create facility discounts
To add a discount to an existing facility, perform the following POST request with a JSON body similar to the example provided. This example applies a discount of 5 EUR to articles that do NOT belong to the category pet food and that belong to either the CGN or DUS facility groups.
POST https://{YOUR-TENANT-NAME}.api.fulfillmenttools.com/api/facilities/{facilityRef}/discounts{
"context": [
{
"operator": "NOT",
"type": "CATEGORY",
"values": [
"pet food"
]
},
{
"operator": "AND",
"type": "FACILITY_GROUP",
"values": [
"CGN",
"DUS"
]
}
],
"discount": {
"type": "ABSOLUTE",
"value": 500,
"currency": "EUR",
"decimalPlaces": 2
},
"priority": 20,
"type": "SALES_PRICE"
}Last updated