Project

General

Profile

Edit Copy Actions

Feature #10036

open

Feature #10034: Evergreen Anniversary Sale Coupon Management in POS & Service Subscription

Coupon Validation API

Added by Yalavarthi Thriveni 5 days ago. Updated 4 days ago.

Status:
Resolved
Priority:
High
Target version:
-
Start date:
07/30/2026
Due date:
07/30/2026 (4 days late)
% Done:

100%

Estimated time:
5:00 h
Spent time:

Description

A common Coupon Validation API should be provided for both:

POS Checkout
Service Subscription Checkout

The API must validate all coupon eligibility rules before applying the discount.

Validation Checklist

The API should verify:

Coupon exists.
Coupon status is Active.
Current date/time falls within the configured Start and End Date.
Coupon has not expired.
Coupon is applicable to the selected module (POS or Service Subscription).
If Service Subscription:
Validate the selected Service Plan (when coupon is restricted to specific plans).
Validate the customer's claim count against the configured maximum.
Validate Unlimited Claims configuration.
Calculate the discount:
Fixed Amount
Percentage
Ensure the discount does not exceed the cart/subscription total (where applicable).
API Response

If validation succeeds, the API should return:

Coupon ID
Coupon Code
Discount Type
Discount Value
Original Amount
Discount Amount
Final Payable Amount
Validation Status
Validation Message

If validation fails, the API should return an appropriate error message indicating the reason, such as:

Coupon is inactive.
Coupon has expired.
Coupon is not yet active.
Coupon is not applicable for this module.
Coupon is not applicable to the selected service plan.
Maximum redemption limit reached.
Invalid coupon code.


Add

Subtasks


Add

Related issues

Actions #1

Updated by Anonymous 4 days ago

  • Due date set to 07/30/2026
  • % Done changed from 0 to 100
  • Estimated time set to 5:00 h
Actions #2

Updated by Pavan Kumar Murala 4 days ago

  • Status changed from New to Resolved
Edit Copy Actions

Also available in: Atom PDF