---
title: "Download Scheduled Report"
method: GET
path: "/v2/giftcards/programs/{programId}/reports/scheduled/{scheduleId}/download"
tags: ["Gift Card Reports"]
---

# Download Scheduled Report

`GET /v2/giftcards/programs/{programId}/reports/scheduled/{scheduleId}/download`

## Request

- Base URL: `https://api.loyalty.dog`
- URL: `https://api.loyalty.dog/v2/giftcards/programs/{programId}/reports/scheduled/{scheduleId}/download`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/loyalty/apis/loyaltydog/docs/v2/giftcards/programs/:programId/reports/scheduled/:scheduleId/download/get.ts> (a function with typed inputs; its response is checked against the schema)

Generate and stream the latest report data for a schedule.

Defaults to the last 30 days of transactions regardless of the schedule's
configured period.  The response ``Content-Disposition`` header carries the
suggested filename derived from the schedule name and current date.

## Path parameters

- `programId` string, required
- `scheduleId` string, required

## Query parameters

- `cardId` string

## Headers

- `X-Eposn-Customer-Token` string, nullable
- `X-Eposn-Merchant-Token` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/loyalty/apis/loyaltydog.md) - [All operations](https://skmtc.dev/loyalty/apis/loyaltydog/llms.txt) - [OpenAPI document](https://skmtc.dev/loyalty/apis/loyaltydog/revisions/5803242b0551?raw)
