Previous Topic Next Topic
Online Ordering Module 5a: Process an Auto-Redemption (Redemptions 2.0) Online Ordering Module 5c: Get the Active Discount Basket (Redemptions 2.0)

Online Ordering API Certification Tutorial - Module 5b: Manage Items in the Discount Basket (Redemptions 2.0)

Goal

Redemptions 2.0 - Add items to or remove items from a guest’s discount basket.

Prerequisites

You must have read the Online Ordering Module 5a: Process an Auto-Redemption tutorial.

Use Cases and Context

There are two online ordering API endpoints for managing items in the discount basket: Add Selection to Discount Basket and Remove Item From Discount Basket. A guest can add a discount to the basket, if not already selected. The items in the discount basket can be updated as needed via the add/remove discount API calls. Removing items from the discount basket should be done when the guest chooses to remove a discount or when the Possible Redemptions call shows a discount under failures.

The discount basket extends past the initial session, so if the customer decides to leave a discount basket mid-transaction, the developer must decide whether to purge the cart after the web/app session ends or allow it to be recovered/displayed when the user returns to the UI. If purging the cart, the developer must iterate through and call the Remove Item From Discount Basket API until the discount basket is empty.

Note: Only one active basket will be associated with the guest at a time.

Applicable API Endpoints

Endpoint Name/Path Relevant Request Parameters Relevant Response Parameters
Add Selection to Discount Basket
POST {server-name}/api/auth/discounts/select
client
access_token

These parameters under the discount_basket_items_attributes object define each discount that will be added to the discount basket:
- discount_type
- discount_id
- discount_value
redemption_ref
locked

These parameters under the discount_basket_items object list the attributes of each discount added to the discount basket:
- discount_type
- discount_id
- discount_value
- discount_basket_item_id
- created_at
- discount_details object
Remove Item From Discount Basket
DELETE {server-name}/api/auth/discounts/unselect
client
access_token
discount_basket_item_ids
locked

These parameters under the discount_basket_items object list the attributes of each discount added to the discount basket:
- discount_type
- discount_id
- discount_value
- discount_basket_item_id
- created_at
- discount_details object

Workflow

A single discount basket will be active at a time. If there is no active discount basket, the system will create a new active discount basket along with selected discounts passed in the request parameters of the Add Selection to Discount Basket API.

The value of the discount_basket_item_id parameter returned in the response of the Add Selection to Discount Basket API is specific and unique to that basket. Save this value in your system for future reference. You will need this value if you want to remove the item from the discount basket.

Redemptions 2.0 Online Ordering API - Overview

Add Selection to Discount Basket API - Online Ordering

Remove Item From Discount Basket API - Online Ordering

Punchh Offers and Program Types

Copyright © 2025 PAR Technology Corporation. All rights reserved.
PAR Technology Corporation 8383 Seneca Turnpike, Suite 3 New Hartford, New York 13413 (315) 738-0600 legal@partech.com. PAR Tech is a leading global provider of software, systems, and service solutions to the restaurant and retail industries.
You may learn about its product offerings here.
Before using this application, please read the Limited License Agreement and the PAR Tech Terms of Use.