Get Coupon details

This API allows you to retrieve the details of a specific coupon. You can get information such as coupon issued to, current coupon status, coupon redeemed date, and coupon validity.

👍

Note

For detailed information about our APIs and for hands-on testing, refer documentation in API overview and step-by-step guide on making your first API call in Make your first API call .

Prerequisites

  • Authentication: Basic or OAuth authentication
  • Default access group

Resource information

URL/coupon/get
HTTP MethodGET
PaginationNo
Batch supportNo
Rate limit informationNone

API endpoint example

https://eu.api.capillarytech.com/v1.1/coupon/get?issuedToIds=98662653&code=PT4I43YN,WL2ZBJZK&coupon_code_case=LOWER

Request query parameters

ParametersData TypeDescription
issuedToIdsIntegerPass the customer id that you want to retrieve the coupon details from.
codeStringPass the coupon code that you want to retrieve. To retrieve details of multiple coupons, pass each code separating with "," (comma).
coupon_code_caseEnumThis parameter helps to retrieve the coupon code in the desired letter cases. By default, the system automatically converts the coupon code to upper case. The query itself is not case sensitive. Supported Values:
LOWER: Converts the coupon code to lower case.
UPPER: Converts the coupon codes to upper case.
AS_IT_IS: It ensure that the coupon code is retrieved exactly as it was created or provided, without altering the letter case. For instance, if the code is "abAB123," it should be retrieved and displayed as "abAB123," maintaining its original formatting.

Response parameters

ParameterDescription
idUnique identifier of the coupon.
codeCoupon code.
valid_tillExpiration date of the coupon ("DD-MM-YYYY").
issued_onTimestamp when the coupon was issued ("YYYY-MM-DD HH:MM:SS").
valid_fromStart date of the coupon validity ("YYYY-MM-DD HH:MM:SS").
purposePurpose or additional description of the coupon (may be blank).
custom_propertiesCustom properties associated with the coupon.
nameName of a custom property.
valueValue of the custom property.
series_idUnique identifier of the coupon series.
is_absoluteIndicates if the coupon value is an absolute discount (true/false).
valueValue of the coupon (e.g., 10).
discount_uptoMaximum discount limit applicable with the coupon.
customerInformation about the customer to whom the coupon was issued.
idCustomer's unique identifier.
nameCustomer's name.
mobileCustomer's mobile number.
emailCustomer's email address.
external_idExternal identifier for the customer.
pincodePincode associated with the coupon, if available.
item_statusStatus information for the specific coupon processing.
successStatus of the coupon processing.
codeStatus code for the item-level processing (e.g., 700, 705).
messageMessage describing the coupon processing result.
redemption_infoDetails regarding redemption if the coupon was redeemed.
redeemedIndicates whether the coupon was redeemed.
idRedemption ID.
redeemed_onTimestamp when the coupon was redeemed ("YYYY-MM-DD HH:MM:SS").
redeemed_atStore or location where the coupon was redeemed.
redeemed_byInformation about the person who redeemed the coupon.
storeStore information where the coupon was redeemed.
transactionTransaction details for the coupon redemption.
issued_storeStore information where the coupon was originally issued.
{
    "response": {
        "status": {
            "success": "true",
            "status": "true",
            "code": 200,
            "message": "Success"
        },
        "coupons": {
            "coupon": [
                {
                    "id": "454473807",
                    "code": "WL2ZBJZK",
                    "valid_till": "08-03-2122",
                    "issued_on": "2022-05-30 18:10:48",
                    "valid_from": "2022-05-30 18:10:48",
                    "purpose": "",
                    "custom_properties": {
                        "custom_property": [
                            {
                                "name": "standard_image_3",
                                "value": ""
                            },
                            {
                                "name": "standard_terms_and_conditions",
                                "value": ""
                            }
                        ]
                    },
                    "series_id": 142654,
                    "is_absolute": true,
                    "value": 10,
                    "discount_upto": 0,
                    "customer": {
                        "id": "98662653",
                        "name": "Anjaney Vatsal",
                        "mobile": "9988776655",
                        "email": "[email protected]",
                        "external_id": null
                    },
                    "pincode": "NULL",
                    "item_status": {
                        "success": "true",
                        "code": 700,
                        "message": "Coupon processing successful"
                    }
                },
                {
                    "id": "370179951",
                    "code": "PT4I43YN",
                    "valid_till": "10-07-2119",
                    "issued_on": "2021-05-17 19:06:03",
                    "valid_from": "2021-05-17 19:06:03",
                    "purpose": "",
                    "custom_properties": {
                        "custom_property": []
                    },
                    "series_id": 12313,
                    "is_absolute": true,
                    "value": 10,
                    "discount_upto": 0,
                    "customer": {
                        "id": "98662653",
                        "name": "Anjaney Vatsal",
                        "mobile": "9988776655",
                        "email": "[email protected]",
                        "external_id": null
                    },
                    "redemption_info": {
                        "redeemed": "true",
                        "id": 4359526,
                        "redeemed_on": "2021-05-17 19:07:54",
                        "redeemed_at": "bukl.till",
                        "redeemed_by": {
                            "firstname": "Anjaney",
                            "lastname": "Vatsal",
                            "email": "[email protected]",
                            "mobile": "9988776655"
                        },
                        "store": {
                            "code": "bukl.till",
                            "name": "bukl.till"
                        },
                        "transaction": {
                            "id": null,
                            "bill_number": "ZDCsddfg"
                        }
                    },
                    "pincode": "NULL",
                    "issued_store": {
                        "code": "international_business_park",
                        "name": "International Business Park"
                    },
                    "item_status": {
                        "success": "true",
                        "code": 700,
                        "message": "Coupon processing successful"
                    }
                }
            ]
        }
    }
}
{
    "response": {
        "status": {
            "success": "true",
            "status": "true",
            "code": 200,
            "message": "Success"
        },
        "coupons": {
            "coupon": [
                {
                    "id": "454473807",
                    "code": "wl2zbjzk",
                    "valid_till": "08-03-2122",
                    "issued_on": "2022-05-30 18:10:48",
                    "valid_from": "2022-05-30 18:10:48",
                    "purpose": "",
                    "custom_properties": {
                        "custom_property": [
                            {
                                "name": "standard_image_3",
                                "value": ""
                            },
                            {
                                "name": "standard_terms_and_conditions",
                                "value": ""
                            }
                        ]
                    },
                    "series_id": 142654,
                    "is_absolute": true,
                    "value": 10,
                    "discount_upto": 0,
                    "customer": {
                        "id": "98662653",
                        "name": "Anjaney Vatsal",
                        "mobile": "9988776655",
                        "email": "[email protected]",
                        "external_id": null
                    },
                    "pincode": "NULL",
                    "item_status": {
                        "success": "true",
                        "code": 700,
                        "message": "Coupon processing successful"
                    }
                },
                {
                    "id": -1,
                    "code": "WL2ZBJZK",
                    "is_absolute": false,
                    "value": null,
                    "discount_upto": null,
                    "pincode": "NULL",
                    "item_status": {
                        "success": "false",
                        "code": 705,
                        "message": "Both coupon code and validation code are invalid"
                    }
                },
                {
                    "id": -1,
                    "code": "PT4I43YN",
                    "is_absolute": false,
                    "value": null,
                    "discount_upto": null,
                    "pincode": "NULL",
                    "item_status": {
                        "success": "false",
                        "code": 705,
                        "message": "Both coupon code and validation code are invalid"
                    }
                },
                {
                    "id": "370179951",
                    "code": "pt4i43yn",
                    "valid_till": "10-07-2119",
                    "issued_on": "2021-05-17 19:06:03",
                    "valid_from": "2021-05-17 19:06:03",
                    "purpose": "",
                    "custom_properties": {
                        "custom_property": []
                    },
                    "series_id": 12313,
                    "is_absolute": true,
                    "value": 10,
                    "discount_upto": 0,
                    "customer": {
                        "id": "98662653",
                        "name": "Anjaney Vatsal",
                        "mobile": "9988776655",
                        "email": "[email protected]",
                        "external_id": null
                    },
                    "redemption_info": {
                        "redeemed": "true",
                        "id": 4359526,
                        "redeemed_on": "2021-05-17 19:07:54",
                        "redeemed_at": "bukl.till",
                        "redeemed_by": {
                            "firstname": "Anjaney",
                            "lastname": "Vatsal",
                            "email": "[email protected]",
                            "mobile": "9988776655"
                        },
                        "store": {
                            "code": "bukl.till",
                            "name": "bukl.till"
                        },
                        "transaction": {
                            "id": null,
                            "bill_number": "ZDCsddfg"
                        }
                    },
                    "pincode": "NULL",
                    "issued_store": {
                        "code": "international_business_park",
                        "name": "International Business Park"
                    },
                    "item_status": {
                        "success": "true",
                        "code": 700,
                        "message": "Coupon processing successful"
                    }
                }
            ]
        }
    }
}
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!