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

Create a Single-Code Coupon with SAP Omnichannel Promotion Pricing

Learn how to create a single-code coupon using the Coupon Management service of SAP Omnichannel Promotion Pricing.

Overview

🎓 advanced 10 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 create a single-code coupon with the Coupon Management service
Lena Bast L Lena Bast July 16, 2025
Created by May 6, 2025
Contributors

Prerequisites

Prerequisites

Steps

Get to know the business scenario

  • 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 Create a single-code coupon object
β€”

At first, you create a single-code coupon object with the Coupon Management service.

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

Coupon creation request
Coupon creation 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 Coupon.
  4. Open the POST request /Coupon.
  5. Copy the following raw data and paste it into the body:
JSON
{ 
  "status": "INACTIVE",
  "displayID": "ANNIVERSARY25",
  "type": "SINGLECODE",
  "name": "ANNIVERSARY25",
  "validFrom": "2026-01-01",
  "validTo": "2026-12-31",
  "couponCodeValidityPeriodInDays": 365,
  "maxRedemptionCountPerCouponCode": 100000
}
  1. Choose Run.
  2. Make sure you get the HTTP response 201.
  3. From the response, note down the technical coupon ID (ID) as you will need it later.

The response should look like this:

Coupon creation response
Coupon creation response

With this, you have created a single-code coupon object with the nameβ€―ANNIVERSARY25 and a validity period from January 1, 2026 to December 31, 2026. The coupon can be redeemed 100,000 times.

Optional: If you want to check whether you have successfully created the single-code coupon ANNIVERSARY25, you can proceed with the following steps:

Coupon creation check
Coupon creation check

  1. On the left-hand side, choose Coupon.
  2. Open the GET request /Coupon.
  3. Choose Run.
  4. Make sure you get the HTTP response 200.
  5. In the response body, you should see the coupon that you have created.
Step 2 Change status of coupon object
+
Step 3 Create coupon codes
+
Step 4 What to do next
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Create a single-code coupon object 2. Change status of coupon object 3. Create coupon codes 4. What to do next 5. Additional information

Learn more →