Automatically Apply Discounts

Applies to: Catalog API

Learn how to create pricing rules for discounts based on the number of products, a combination of items, or a specific time period.

Link to section

Overview

You can use the Catalog API to configure pricing rules to enable the automatic application of discounts to orders completed with Square POS applications or the Orders API. These applications include Square for Retail, Square for Restaurants, and Square Appointments. For information about automatically applying discounts with the Orders API version 2020-07-22 or higher, see Square-applied Order Discounts

The discount can be a volume discount like a Buy One Get One (BOGO), a minimum order discount, or an exact quantity purchase discount. It can be a bundled discount applying to a combination of categories of purchased items. It can also be a time-based discount applied over a specified period of time, like a happy hour.

Link to section

Requirements and limitations

  • Pricing rule-based discounts aren't supported in the Reader SDK or the Checkout API.
  • Pricing rules created through the Catalog API aren't editable in Square Point of Sale.
Link to section

How pricing rule-based discounts work

Pricing rule-based discounts can be applied based on:

  • Specific items (or categories of items) purchased.
  • The time of day, the day of the week, or the duration of a promotion.

To set pricing rules to enable the automatic application of discounts, you typically use the following types of CatalogObject instances:

  • Product Set - Represents a collection of catalog products. Product sets can be a collection of different Catalog object types, such as an ITEM, CATEGORY, or ITEM_VARIATION. You can also specify whether one or all products must be present and in what quantity.
  • Pricing Rule - Represents a set of conditions under which a discount or fixed price applies to a product set.
  • Time Period - Represents a (potentially recurring) time period. Dates and times use the iCal Date-Time Format.

Important

Square Point of Sale applications must be version 5.15 or later to take advantage of pricing rules. For questions or feedback, contact Support.

Link to section

Create categories

To complete the following discount exercises, you must have a Drinks category and a Meal category created in your catalog:

Link to section

Create a Drinks category

Follow the example to create the Drinks category. Make sure you copy the ID of the resulting CatalogObject of the CATEGORY type. You need the ID later.

Link to section

Request

Upsert catalog object

The "id": "#drinks" key-value pair is optional. It's required only if the Drinks category object is referenced elsewhere in the same request payload.

Link to section

Response

The successful operation returns a 200 OK response with the payload similar to the following:

Link to section

Create a Meal category

Follow the example to create the Meal category. Make sure you copy the ID of the resulting CatalogObject of the CATEGORY type. You need the ID later.

Link to section

Request

Upsert catalog object

The "id": "#meal_category" key-value pair is optional. It's required only if the Meal category is referenced elsewhere in the same request payload.

Link to section

Response

The successful operation returns a 200 OK response with the payload similar to the following:

Link to section

See also