Redeem single coupon

This API allows you to redeem active coupons of a loyalty customer. You can pass multiple coupons at once.

🚧

Notes

  • This API does not trigger any loyalty events and is designed to redeem coupons directly. If the use case involves issuing points or coupons to the user as part of a loyalty promotion during the redemption of a coupon, it is recommended to use the v1.1/coupon/redeem API.
  • The coupon redemption and crediting of the coupon to the wallet functionality are available only in the v1.1 API. The v2 API is designed to redeem coupons directly.
  • For all redeem coupon APIs event notification is generated.

Body parameter

ParameterDescription
billAmountThe total amount of the bill.
transactionNumberThe unique number associated with the transaction.
userDetails of the customer.
user.mobileMobile number of the customer.
redemptionTimeThe date and time when the coupon is going to be redeemed in YYYY-MM-DD HH:MM:SS format. The time defined here is used for certain evaluations, but it is not stored in the system. The system considers the store's current time as the redemption time.
redemptionRequestListList containing coupon details for redemption.
codeCoupon code to be redeemed.
{
    "redemptionRequestList": [
        {
            "code": "2609909641"
        }
    ],
    "user": {
        "externalId": "000003873472"
    },
    "transactionNumber": "",
    "billAmount": "0",
    "redemptionTime": "2024-11-11T05:11:13-05:00"
}

Response parameters

FieldDescription
redemptionA list containing details of each redemption instance.
idA unique identifier for the redemption instance.
currencyInputIndicates whether currency input is required for the redemption.
localToBaseCurrencyExchangeRateThe exchange rate used to convert from the local currency to the base currency.
warningsA list of warnings encountered during the redemption process.
appendedErrorMessageContains any error message appended during the redemption process.
codeThe coupon code used for redemption.
discountCodeThe discount code associated with the coupon.
seriesCodeThe series code of the coupon.
isAbsoluteIndicates whether the discount value is absolute.
couponValueThe value of the coupon.
redemptionStatusIndicates the status of the redemption process.
redemptionStatus.statusCodeContains the status code details of the redemption process.
statusCode.statusIndicates whether the coupon processing was successful.
statusCode.messageA message describing the status of the coupon processing.
statusCode.codeThe status code representing the result of the coupon processing.
redemptionStatus.warningsWarnings related to the redemption process.
redemptionStatus.warningsAsStatusCodeWarnings formatted as status codes.
redemptionStatus.messageA message providing additional information about the redemption status.
redemptionStatus.codeThe status code for the redemption process.
redemptionStatus.successIndicates whether the redemption was successful.
discountTypeThe type of discount applied (e.g., "ABS" for absolute value).
discountValueThe value of the discount applied.
discountUptoThe maximum value of the discount if applicable.
redemptionStatusRepresents the overall status of the redemption.
redemptionStatus.statusIndicates the overall success status of the coupon processing.
redemptionStatus.messageA message describing the overall status of the coupon processing.
redemptionStatus.codeThe status code representing the overall result of the coupon processing.
customerAn object containing details about the customer.
customer.idA unique identifier for the customer.
customer.profilesAn array of profile objects associated with the customer.
firstNameThe first name of the customer.
lastNameThe last name of the customer.
fieldsContains additional fields related to the customer's profile.
identifiersIdentifier for the customer.
identifiers.typeThe type of identifier (e.g., "mobile", "email").
identifiers.valueThe value of the identifier (e.g., the actual mobile number or email address).
customer.profiles.identifiers.typeThe type of the second identifier.
customer.profiles.identifiers.valueThe value of the second identifier.
customer.profiles.commChannelsCommunication channels preferred by the customer.
customer.profiles.userIdA unique identifier for the user's profile.
customer.profiles.accountIdThe account ID associated with the customer's profile.
customer.profiles.autoUpdateTimeThe timestamp indicating the last automatic update time for the profile.
customer.profiles.identifiersAllContains all identifiers associated with the customer.
identifiersAll.typeThe type of the first identifier in the all identifiers.
identifiersAll.valueThe value of the first identifier in the all identifiers.
identifiersAll.typeThe type of the second identifier in the all identifiers.
identifiersAll.valueThe value of the second identifier in the all identifiers.
warningsWarnings encountered during the process.
{
    "redemption": [
        {
            "id": 369455787,
            "currencyInput": false,
            "localToBaseCurrencyExchangeRate": 0,
            "warnings": [],
            "appendedErrorMessage": "",
            "code": "MGU9Y4PM",
            "discountCode": "NO_VALUE",
            "seriesCode": 12313,
            "isAbsolute": true,
            "couponValue": 10.0,
            "redemptionStatus": {
                "statusCode": {
                    "status": true,
                    "message": "Coupon processing successful",
                    "code": 700
                },
                "warnings": [],
                "warningsAsStatusCode": [],
                "message": "Coupon processing successful",
                "code": 700,
                "success": true
            },
            "discountType": "ABS",
            "discountValue": 10,
            "discountUpto": 0
        }
    ],
    "redemptionStatus": {
        "status": true,
        "message": "Coupon processing successful",
        "code": 700
    },
    "customer": {
        "id": 126080386,
        "profiles": [
            {
                "firstName": "test",
                "lastName": "test",
                "fields": {},
                "identifiers": [
                    {
                        "type": "mobile",
                        "value": "917500000000"
                    },
                    {
                        "type": "email",
                        "value": "[email protected]"
                    }
                ],
                "commChannels": [],
                "userId": 126080386,
                "accountId": "",
                "autoUpdateTime": "2021-05-12T15:18:01Z",
                "identifiersAll": [
                    {
                        "type": "mobile",
                        "value": "917500000000"
                    },
                    {
                        "type": "email",
                        "value": "[email protected]"
                    }
                ]
            }
        ]
    },
    "warnings": []
}
Language
URL
Click Try It! to start a request and see the response here!