# Fetches the point expiration details for a specific member

This API is used to fetch the point expiration details for a member based on the specified date range and page number as provided by the user.

Endpoint: GET /pointsexpiry/{{memberId}}
Version: 3.0.0
Security: 

## Path parameters:

  - `memberId` (string, required)
    Enter the unique ID of the member.
    Example: "user@domain.com"

  - `start_date` (string, required)
    Enter the date on which you’d like to start pulling point expiration data for the member in yyyy-MM-dd'T'HH:mm:ssZ format.
    Example: "2024-04-28T06:02:06+0000"

  - `end_date` (string, required)
    Enter the date on which you’d like to stop pulling point expiration data for the member in yyyy-MM-dd'T'HH:mm:ssZ format.
    Example: "2024-04-28T06:02:06+0000"

  - `aggregate_by` (string, required)
    Enter a value to group points in a date range that have expired or are about to expire in a week, month, quarter, or year.
    Example: "month"

  - `page` (integer, required)
    Enter the total number of pages of the point expiration details for the member.
    Example: 1

## Response 200 fields (application/json):

  - `siteId` (string)
    Displays Annex Cloud’s site ID for the loyalty program.
    Example: 146031180

  - `id` (string)
    Displays the unique ID of the member.
    Example: "user@domain.com"

  - `expiryDetail` (object)
    Displays the point expiration details for the member.

  - `expiryDetail.date` (string)
    Depending on the aggregate_by value, the time block for which expired points have been aggregated.
    Example: "2024-04"

  - `pointsActivity` (object)
    Displays points details for the time block.

  - `pointsActivity.points` (integer)
    Displays the number of data points that appear on the page for the expiration details for the selected member.
    Example: 2010

  - `pointsActivity.expiryDate` (string)
    Displays the date on which the points expired in yyyy-MM-dd'T'HH:mm:ssZ format.
    Example: "2024-04-28T06:02:06+0000"

  - `pointsActivity.totalPointsToExpire` (integer)
    Displays the total number of points next to expire from the selected date range.
    Example: 2010

  - `pointsActivity.totalPointsExpired` (integer)
    Displays the total number of expired points for the member from the selected date range. The total number of points that have expired are calculated based on two action IDs (106 and 192).

  - `pages` (integer)
    Displays the total number of pages for the member’s point expiration details.
    Example: 1

  - `currentPage` (integer)
    Displays the page number for the fetched member details.
    Example: 1

  - `totalExpiryDetailCount` (integer)
    Displays the total number of point expiration details for the member.
    Example: 2


## Response 400 fields

## Response 403 fields

## Response 404 fields

## Response 405 fields

## Response 422 fields
