---
title: "Get historical points"
method: POST
path: "/v2/historicalPoints/getHistoricalPoints/{id}"
---

# Get historical points

`POST /v2/historicalPoints/getHistoricalPoints/{id}`

Retrieve historical loyalty points activity imported from an external or legacy loyalty program for a specific customer.

## Path parameters

- `id` string, required

## Headers

- `Authorization` string
- `X-CAP-API-OAUTH-TOKEN` string

## Request body

- object
  - `filter` object, required — Filter criteria for retrieving historical points records.
    - `filterType` 'NONE' | 'DATE' | 'TRANSACTION_TYPE' | 'BILL_NUMBER' | 'LOYALTY_PROGRAM_NAME' | 'POINTS_ACTIVITY' | 'PROGRAM_ID', required — The type of filter to apply. Must be one of: NONE, DATE, TRANSACTION_TYPE, BILL_NUMBER, LOYALTY_PROGRAM_NAME, POINTS_ACTIVITY, PROGRAM_ID.
    - `filterValues` string[], required — Values to filter by, based on the selected filterType. Pass an empty array [] when filterType is NONE. For DATE, provide exactly two ISO 8601 timestamps with timezone offset. For PROGRAM_ID, provide a single numeric value as a string.
  - `pageDetails` object, required — Pagination settings for the response.
    - `offset` integer — Number of records to skip. Defaults to 0.
    - `limit` integer, required — Maximum number of records to return per page.

## Response `200`

Successful response

## Other responses

- `400` — Missing required field in the request body.
- `401` — Authentication failed. Check the Authorization header.

---

[API](https://skmtc.net/capillarytech/apis/sample-api.md) · [All operations](https://skmtc.net/capillarytech/apis/sample-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/capillarytech/sample-api/revisions/de241f2ed9b3/schema)
