Get Pending Discount Coupons
Returns discount coupons that can still be used: coupons not yet redeemed against a sale and not yet expired. Use it to show a shopper the coupons waiting for them (by mobile number), or to keep your app's list of open coupons up to date.
Endpoint
Address
https://your-server/api/GetRCUPendingCoupons
Method
POST
Authorization
Basic Auth
The response is explained in How Every API Call Works. This endpoint does not use the change log: GlobalModifyCode, Doc_Codes, Branch_Codes_From and Doc_Num_Like are not read, and LastGlobalModifyCode is always 0. Each call returns every coupon that matches.
Request fields
MobileNo
text
No
empty
Only coupons issued to the retail customer(s) with this mobile number. One number only. Note the spelling: MobileNo, not Mobile_No.
Coupon_Group_Name
text
No
empty
Only coupons of this coupon group, exact name, for example "DIWALI 2026".
DateFrom, DateTo
date
No
empty
Only coupons created or changed in this period (both days included). Write them as yyyy-MM-dd. Used only when both are valid dates; otherwise ignored, without a message.
All filters are optional and combine: a coupon must pass every filter you send. With no filters, every pending coupon is returned.
Rules Logic ERP applies
Pending means: not yet used on a sale, and the expiry date is today or later. Used and expired coupons are not returned.
Coupons whose start date is still in the future are returned – check
Start_Datebefore you offer one.Coupons with no coupon group are included (their
Coupon_Group_Nameis"(NIL)").Without
MobileNo, coupons not issued to any particular customer are included too (theirRCU_Membership_Nois empty).With
MobileNo, the coupon is matched to the customer through the customer's membership number. If several customers share the mobile number, coupons of all of them are returned.There is no branch filter and no batch limit. The order of the records is not fixed.
Known issue – used-up multi-use coupons are still listed. A coupon that may be used more than once (
Allow_Unlimited_Use: true) is never marked as used, so it stays in this list after it has been used, even when it has reachedAllow_Max_Count. Do not treat such a coupon as certainly usable: let the till check it when the shopper redeems it.
Known issue – coupons without an expiry date are left out. A coupon that has no expiry date entered in Logic ERP is never returned, even when it has not been used. If your company issues coupons without an expiry date, ask your Logic ERP team to give them one so they appear here.
Example request
Test it
Send a request to the Logic ERP sandbox (a test company) from this page: open the block below, enter the sandbox user name and password (ask your Logic ERP support team), change the request if you like, and press Test it. The example lists every pending coupon of the sandbox; fill MobileNo or Coupon_Group_Name to narrow it.
Returns discount coupons that can still be used: coupons not yet redeemed against a sale and not yet expired. Use it to show a shopper the coupons waiting for them (by mobile number), or to keep your app's list of open coupons up to date.
The user name and password of your API site.
Only coupons issued to the retail customer(s) with this mobile number. One number only. Note the spelling: MobileNo, not Mobile_No.
Only coupons of this coupon group, exact name, for example "DIWALI 2026".
Only coupons created or changed in this period (both days included). Write them as yyyy-MM-dd. Used only when both are valid dates; otherwise ignored, without a message.
Only coupons created or changed in this period (both days included). Write them as yyyy-MM-dd. Used only when both are valid dates; otherwise ignored, without a message.
Always HTTP 200. Check Status, Message and GetData.
See the Status rules on this page and on How Every API Call Works.
Why the call failed, or a note. The reason may be followed by technical detail - read the first line.
The change-log bookmark (see How Every API Call Works).
Size of the answer, for example "2 KB".
No login was sent.
POST /api/GetRCUPendingCoupons HTTP/1.1
Host: demo.logicerp.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 68
{
"MobileNo": "",
"Coupon_Group_Name": "",
"DateFrom": null,
"DateTo": null
}{
"GetData": [
{
"Coupon_Group_Name": "text",
"Discount_Coupon_PreFix": "text",
"Discount_Coupon_Number": 1,
"Discount_Coupon_Num": "text",
"Discount_Coupon_Barcode": "text",
"Allow_Max_Count": 1,
"Start_Date": "text",
"Expiry_Date": "text",
"ModifyDate": "text",
"SchemeRs": 1,
"CD_P": 1,
"Min_Amount": 1,
"Max_Amount_For_CD_P": 1,
"Allow_Unlimited_Use": true,
"RCU_Membership_No": "text"
}
],
"Status": true,
"Message": "text",
"LastGlobalModifyCode": 1,
"resultSize": "text"
}Response fields
Each record in GetData:
Coupon_Group_Name
text
The coupon group. "(NIL)" when the coupon has no group.
Discount_Coupon_PreFix
text
Prefix of the coupon number.
Discount_Coupon_Number
number
Running number of the coupon.
Discount_Coupon_Num
text
Full coupon number – prefix followed by number, for example "DW1025". This is what the shopper quotes.
Discount_Coupon_Barcode
text
Barcode printed on the coupon. Empty when none.
RCU_Membership_No
text
Membership number of the customer the coupon was issued to, for example "RC10458". Empty when the coupon is not tied to a customer.
CD_P
number
Discount as a percentage of the bill. 0 when the coupon gives a fixed amount instead.
SchemeRs
number
Discount as a fixed amount in ₹. 0 when the coupon gives a percentage instead.
Max_Amount_For_CD_P
number
The most a percentage discount may come to, in ₹.
Min_Amount
number
Minimum bill amount, in ₹, for the coupon to apply.
Allow_Unlimited_Use
true / false
true when the coupon can be used more than once.
Allow_Max_Count
number
How many times a multi-use coupon may be used.
Start_Date
text
First day the coupon may be used, dd/MM/yyyy (day/month/four-digit year, for example 31/01/2026). Empty when not set.
Expiry_Date
text
Last day the coupon may be used, dd/MM/yyyy.
ModifyDate
text
Day the coupon was last changed, dd/MM/yyyy. Empty when not recorded.
Example response
Messages you may see
No Record Found... (with Status: false)
No pending coupon matches the request. Unlike most endpoints, Status is false here even though the request was valid.
Treat it as "no coupons". Do not treat it as an error.
A database error (with Status: false), for example Incorrect syntax near 'BRIEN'.
The request could not be processed, usually because MobileNo or Coupon_Group_Name contained a '. The reason may be followed by technical detail – read the first line.
Send the values without '. If it continues, send the first line to your Logic ERP support team.