Facility discounts

More facility discount API information can be found here: REST API documentation – 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

Discounts can be added to an existing facility by performing the following POST call with the below JSON body. The below example applies a discount of 5€ to articles that do NOT belong to the category "pet food" and/or that belong to the facility groups "CGN" or "DUS".

POST https://{YOUR-TENANT-NAME}.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