SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Reserve, Extend, and Redeem a Single-Code Coupon with SAP Omnichannel Promotion Pricing

Learn how to reserve, extend, and redeem a single-code coupon as well as how to calculate the effective sales price.

Overview

🎓 advanced 30 min. SAP Business Technology PlatformAdvancedCloudSAP BTP Cloud Foundry Environment

You will learn

  • How to use the SAP Omnichannel Promotion Pricing services on SAP BTP trial
  • How to reserve, extend, and redeem a coupon code with the Coupon Management service
  • How to calculate the effective sales price in a sales transaction with the Calculation service of SAP Omnichannel Promotion Pricing by applying a coupon
Lena Bast L Lena Bast July 17, 2026
Created by March 27, 2025
Contributors

Prerequisites

Prerequisites

Steps

Get to know the business scenario (repeated)

  • Business goal: You are a promotion planner. You are launching a promotional campaign for your customers to celebrate your company’s 25th anniversary. As part of the promotional campaign, you want to offer the single-code coupon ANNIVERSARY25 to your customers. The coupon is valid from January 1, 2026 to December 31, 2026.
  • You distribute the coupon ANNIVERSARY25 to your target customers.
  • You create a promotion: Show coupon ANNIVERSARY25 and get 25% off.
  • Because of the great collaboration between your company and SAP in the last years, you want to include SAP in your promotional campaign to celebrate together. So, you create another promotion: Buy one or more products of brand SAP and spend more than EUR 100 to get 10% off. For this promotion, you enable promotion recommendations.
  • Both promotions are valid in your web shop (business unit: ONLINE) from January 1, 2026 to December 31, 2026.
  • A few days after your promotional campaign launched, a customer that received the coupon ANNIVERSARY25 browses through your web shop. Your customer selects a hoodie of brand SAP. The regular sales price for the hoodie is EUR 80. The customer enters the coupon ANNIVERSARY25 when checking out and gets 25% off.
  • Since the shopping cart value is just under EUR 100, a promotion recommendation is displayed to the customer saying that if they add another product of brand SAP so that the shopping cart value is over EUR 100, they get an additional 10% off.
  • To think about this, the customer takes a short coffee break and afterwards browses through the web shop again. Since this took a few minutes, the coupon reservation needed to be extended.
  • The customer adds another hoodie of brand SAP to the shopping cart. Since the shopping cart value is now over EUR 100, they get an additional 10% discount. They proceed to check out and finalize the payment of EUR 108. The coupon code is redeemed in the background.
Step 1 Reserve a coupon code

Now we jump back to the SAP Business Accelerator Hub. Here, you can now reserve a coupon code for the single-code coupon ANNIVERSARY25 using the Coupon Management service.

Scenario: On December 19th, 2026, your customer has selected a hoodie (material number: HOODIE, regular sales price: EUR 80) of brand SAP in your web shop. At the time of checkout, the customer enters the coupon code for the single-code coupon ANNIVERSARY25. The web shop calls the Coupon Management service to reserve the coupon code.

Desired Result: The coupon code is reserved.

Let’s see if this is the case:

Navigate to the Coupon Management service of SAP Omnichannel Promotion Pricing on SAP Business Accelerator Hub. Log on with the same login information that you use for your SAP BTP account.

Reserve coupon code request
Reserve coupon code request

  1. Navigate to the Try Out section.
  2. On the right-hand side, select the trial environment you have created for the Coupon Management service.
  3. On the left-hand side, choose Service Operation.
  4. Open the POST request /reserveCouponCode.
  5. Copy the following data and paste it into the body:
JSON
{ 
"couponCodeValue": "ANNIVERSARY25", 
"reservationDate": "2026-12-19",
"transactionID": "string"
}
  1. Choose Run.
  2. Make sure you get the HTTP response 200.
  3. From the response, note down the redemptionInfoID and the reservationToken.

The response should look like this:

Reserve coupon code response
Reserve coupon code response

With this, you have reserved the coupon code for 30 minutes. It is also possible to extend the reservation by 30 minutes.

Step 2 Calculate the effective sales price (Part 1)
+
Step 3 Extend the reservation of the coupon code
+
Step 4 Calculate the effective sales price (Part 2)
+
Step 5 Redeem the coupon code
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 6
1. Reserve a coupon code 2. Calculate the effective sales price (Part 1) 3. Extend the reservation of the coupon code 4. Calculate the effective sales price (Part 2) 5. Redeem the coupon code 6. Additional information

Learn more →