---
title: "Export loyalty cards"
method: GET
path: "/v1/loyalty_programs/{loyaltyProgramId}/cards/export"
tags: ["Loyalty cards"]
---

# Export loyalty cards

`GET /v1/loyalty_programs/{loyaltyProgramId}/cards/export`

## Request

- Base URL: `https://yourbaseurl.talon.one`
- URL: `https://yourbaseurl.talon.one/v1/loyalty_programs/{loyaltyProgramId}/cards/export`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/talon/apis/management-api/docs/v1/loyalty_programs/:loyaltyProgramId/cards/export/get.ts> (a function with typed inputs; its response is checked against the schema)

> [!note] Management API endpoints are **not** meant to be used in real-time integrations that directly serve your end users. Rate limit: 3 requests per second.

Download a CSV file containing the loyalty cards from a specified loyalty
program.

> [!tip] If the exported CSV file is too large to view, you can
> [split it into multiple files](https://www.google.com/search?q=split+CSV+into+multiple+files).

The CSV file contains the following columns:

- `identifier`: The unique identifier of the loyalty card.
- `created`: The date and time the loyalty card was created.
- `status`: The status of the loyalty card.
- `userpercardlimit`: The maximum number of customer profiles that can be linked to the card.
- `customerprofileids`: Integration IDs of the customer profiles linked to the card.
- `blockreason`: The reason for transferring and blocking the loyalty card.
- `generated`: An indicator of whether the loyalty card was generated.
- `batchid`: The ID of the batch the loyalty card is in.
- `attributes`: The custom attributes of this loyalty card.

## Path parameters

- `loyaltyProgramId` integer, required

## Query parameters

- `batchId` string
- `createdBefore` string, date-time
- `createdAfter` string, date-time
- `dateFormat` 'excel' | 'ISO8601'

## Response `200`

OK

## Other responses

- `400`: Bad request
- `401`: Unauthorized

---

[API](https://skmtc.dev/talon/apis/management-api.md) - [All operations](https://skmtc.dev/talon/apis/management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talon/apis/management-api/revisions/7ef1b9504c3a?raw)
