Get Custom Fields Associated with Coupon Redemption

The API retrieves the custom fields and their associated values for coupon redemption.

🚧

Note

This API is a private API that has been exposed through Neo and made public.

Prerequisites

  • Access to Neo
  • Authentication - Basic or OAuth authentication details
  • Access group resource - NA
  • Header x-cap-neo-dag-scope set to a valid scope value (e.g. global)

Resource information

URIx/neo/couponRedemption/customFields
HTTP methodGET
Pagination supported?Yes
Rate limitBased on Neo
Batch supportNA

API endpoint example

https://nightly.api.capillarytech.com/x/neo/couponRedemption/customFields?redemption_ids=1046094,1046095,1046096&page=1&count=15

Request query parameters

Parameter(Parameters marked with * are mandatory) Data Type Description

redemption_ids*

Long

A unique identifier for the redemption instance. It is the ID generated when a coupon is redeemed. You can provide multiple redemption IDs, separated by commas.

page

Integer

Retrieve details of a specific page. Page count starts from 1.
Example: page=2 retrieves data on page 2.

count

Integer

Number of results to display per page. The default value is 10. The maximum supported value is 100.

Sample request

curl --location 'https://nightly.api.capillarytech.com/x/neo/couponRedemption/customFields?redemption_ids=1046094%2C1046095%2C1046096&page=1&count=15' \
--header 'Content-Type: application/json' \
--header 'x-cap-neo-dag-scope: global' \
--header 'Authorization: Basic bMDcxNTJkMjM0Yjcw' \
--header 'Cookie: _cfuvid=bDzuqORMDePiD7OSqoaM5Wf.LRjcYN1SoBJGzi0aLo4-1749727061901-0.0.1.1-604800000'

Response parameters

ParameterData TypeDescription
redemptionIdLongUnique identifier for the redemption instance.
redemptionCustomFieldsArrayArray containing the custom fields and their associated values.
nameStringName of the custom field.
valueStringValue associated with the custom field.

Sample response

[
    {
        "redemptionId": 1046094,
        "redemptionCustomFields": [
            {
                "name": "age",
                "value": "12"
            },
            {
                "name": "redem_gender",
                "value": "Female1"
            }
        ]
    },
    {
        "redemptionId": 1046095,
        "redemptionCustomFields": [
            {
                "name": "age",
                "value": "10"
            }
        ]
    },
    {
        "redemptionId": 1046096,
        "redemptionCustomFields": [
            {
                "name": "age",
                "value": "12"
            },
            {
                "name": "redem_gender",
                "value": "Female2"
            }
        ]
    }
]

Error Codes

Error CodeDescription
400Bad Request
404Not Found
500Internal Server Error
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!