Retrieve Expired Loyalty Points of a Customer

This API retrieves details of expired loyalty points for a given customer and year. An expired-point record shows when points expired, the program under which they accrued, and the total expired points.

👍

Note

  • Only host url https://dev.api.capillarytech.com is supported
  • For detailed information about our APIs and for hands-on testing, refer to documentation in API overview and the step-by-step guide on making your first API call in Make your first API call.

Prerequisites

  • Basic or OAuth authentication credentials
  • Header x-cap-neo-dag-scope set to a valid scope value (e.g. global)
  • customer_id (integer)
  • year (four-digit integer, e.g. 2024)

Resource information

URL/x/neo/customer/expiredPoints?customer_id={customerId}&year={year}
HTTP methodGET
PaginationNo
Rate limitN/A
Batch supportN/A

API endpoint example

https://dev.api.capillarytech.com/x/neo/customer/expiredPoints?customer_id=11064&year=2024

Request query parameters

ParameterData TypeDescription
customer_id*IntegerUnique identifier of the customer whose expired points you want to retrieve.
year*IntegerFour-digit year for which to retrieve expired points (e.g. 2024).

* Mandatory parameters

Sample Request

curl --location 'https://dev.api.capillarytech.com/x/neo/customer/expiredPoints?customer_id=11064&year=2024' \
  --header 'Content-Type: application/json' \
  --header 'x-cap-neo-dag-scope: global' \
  --header 'Authorization: Basic ZGV2LmRzLnRpbGwwMjoyMDJjY2MmFjNTkwNzViOTY0YjA3MTUyZDIzNGI3MA==' \
  --header 'Cookie: _cfuvid=Azq8pU.vLFQFz1dokJOcKQlnOdEJB31.pqwBHrepJ14-1747219493263-0.0.1.1-604800000'

Response parameters

ParameterData TypeDescription
pointsExpiryDateStringDate and time when the points expired (e.g. 2024-04-01 05:00:02.0).
customerIdIntegerThe customer’s unique identifier.
programIdIntegerIdentifier of the loyalty program under which they accrued.
pointsIntegerNumber of points that expired on the given date.

Sample Response

[
  {
    "pointsExpiryDate": "2024-04-01 05:00:02.0",
    "customerId": 11064,
    "programId": 33,
    "points": 800
  },
  {
    "pointsExpiryDate": "2024-08-01 05:00:02.0",
    "customerId": 11064,
    "programId": 33,
    "points": 100
  }
]

API Error Codes

Error codeMessageDescription
400Bad RequestMissing or invalid customer_id or year value.
401UnauthorizedMissing or invalid authentication credentials.
404Not FoundCustomer not found or no expired points for the year.
500Server ErrorUnexpected server error.
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!