Get Cart Promotion Redemptions

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

This API retrieves redemption history for cart promotion codes, including transaction details, discount amounts, and whether the redemption was applied at the cart level or line-item level.

  • When you call this API with the codes parameter, the system returns redemption records for the specified promotion codes.
  • Use this API when you need to look up when, where, and how specific promotion codes were redeemed.
  • Pass the includeRedemptions parameter as true to get full redemption details including transaction information.
  • This API supports both DISCOUNT and PAYMENT_VOUCHER modes for cart promotions.

Note: To get the list of available promotion codes for a code-linked cart promotion, download the code list from the "Manage Promo Codes" settings on the cart promotions listing page in the UI.

Example request

curl --location 'https://{Host}/api_gateway/v1/promotions/redemptions?codes=UQ38T&mode=DISCOUNT&includeRedemptions=true' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Z2VvcmdlLmRvY2RlbW86NhMDgzYjk1MWY5MGY1NxYmJiY2U='

Prerequisites

  • Authentication: Basic or OAuth authentication.
  • Default access group

Resource information

PaginationNo
Batch supportNo

Query parameters

FieldTypeRequiredDescription
codesStringYesSpecifies the cart promotion code(s) for which you want to retrieve redemption details.
modeStringYesSpecifies the mode of the cart promotion. Supported values: DISCOUNT, PAYMENT_VOUCHER.
includeRedemptionsBooleanOptionalIf true, includes full redemption details for the codes. Default is false.

Example response

{
    "data": [
        {
            "id": "69145b5cd39e256f754a9309",
            "orgId": 100737,
            "promotionId": "6914232679e37261fe5d4ef3",
            "promoCode": "UQ38T",
            "customerId": 566881933,
            "redemptionDate": 1762991906000,
            "redemptionDateISO": "2025-11-12T23:58:26Z",
            "transactionIdentifier": "893409463",
            "transactionNumber": "nusmbers-erfWDse3sst7ss-5176417625s0600sw0",
            "promotionName": "Jo_voucher_test",
            "transactionEntityIdentifier": "REGULAR_b_893409463",
            "cartEvaluationId": "691457fa79e37261fe5d51b7",
            "redemptionTill": 75197941,
            "discount": "100.000000",
            "redemptionCount": 1,
            "amount": "1000.000000",
            "redemptionType": "CART"
        },
        {
            "id": "68b54abc7880ba5aa7cf56ee",
            "orgId": 100737,
            "promotionId": "68b5401db51b7777eca02900",
            "earnedPromotionId": "67e63559e1c34e7d8e9348aa",
            "customerId": -1,
            "redemptionDate": 1756720800000,
            "redemptionDateISO": "2025-09-01T10:00:00Z",
            "transactionIdentifier": "890697432",
            "transactionNumber": "txn-31",
            "promotionName": "SeptemberPromo",
            "promotionMessageLabel": "",
            "transactionEntityIdentifier": "REGULAR_l_4028300239",
            "redemptionTill": 75152721,
            "discount": "500.000000",
            "redemptionCount": 1,
            "discountAppliedQuantity": "1.000000",
            "promotionAppliedQuantity": "1.000000",
            "amount": "500.000000",
            "sku": "Sku#Fuel",
            "redemptionType": "LINEITEM",
            "productId": 501241333
        }
    ],
    "errors": []
}

Response parameters

FieldTypeDescription
dataArrayList of redemption records for the specified promotion code(s).
.idStringUnique identifier for the redemption record.
.orgIdNumberOrganization ID.
.promotionIdStringUnique identifier of the cart promotion.
.promoCodeStringThe promotion code that was redeemed.
.customerIdNumberCustomer ID associated with the redemption. A value of -1 indicates a POS or anonymous redemption.
.redemptionDateNumberTimestamp of when the redemption occurred. Time format: Epoch milliseconds.
.redemptionDateISOStringTimestamp of when the redemption occurred, in ISO 8601 format, returned in the server time zone. EU server example: 2025-11-12T23:58:26Z → 12 November 2025, 23:58:26 (UTC). India server example: 2025-11-13T05:28:26+05:30 → 13 November 2025, 05:28:26 (IST). Note: The response time zone always matches the server time zone, regardless of the time zone offset in the request.
.transactionIdentifierStringUnique identifier for the transaction.
.transactionNumberStringCustomer-facing bill or receipt number.
.promotionNameStringName of the cart promotion.
.promotionMessageLabelStringOptional message label associated with the promotion.
.transactionEntityIdentifierStringEntity type and identifier. REGULAR_b_ prefix indicates a cart-level redemption; REGULAR_l_ prefix indicates a line-item level redemption.
.cartEvaluationIdStringUnique identifier of the cart evaluation session during which the redemption occurred.
.redemptionTillNumberTill/POS ID where the redemption was processed.
.discountStringDiscount amount applied during the redemption.
.redemptionCountNumberNumber of redemption units recorded in this transaction.
.amountStringTransaction amount (for cart-level) or line item amount (for line-item level) associated with the redemption.
.redemptionTypeStringType of redemption. Supported values: CART (cart-level discount), LINEITEM (line-item level discount), PAYMENT_VOUCHER (payment voucher redemption).
.earnedPromotionIdStringUnique identifier of the earned promotion being redeemed. Returned when the redemption is linked to a previously earned promotion.
.discountAppliedQuantityStringQuantity of items on which the discount was applied. Returned for line-item redemptions.
.promotionAppliedQuantityStringQuantity of items eligible for the promotion. Returned for line-item redemptions.
.skuStringProduct SKU associated with the redemption. Returned for line-item redemptions.
.productIdNumberProduct ID associated with the redemption. Returned for line-item redemptions.
errorsArrayList of errors, if any.

Error codes

CodeDescription
400Invalid request. Check required parameters. Ensure codes and mode are provided and valid.
404Promotion or redemption not found. Verify the promotion code exists and has redemption records.
405Organization not enabled for this operation. Contact Capillary support to enable this feature.
500Internal server error. Retry the request after a short delay, and contact support if the error persists.
Body Params
string
Responses

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json