---
title: "Export coupons"
method: GET
path: "/v1/applications/{applicationId}/export_coupons"
tags: ["Coupons"]
---

# Export coupons

`GET /v1/applications/{applicationId}/export_coupons`

## Request

- Base URL: `https://yourbaseurl.talon.one`
- URL: `https://yourbaseurl.talon.one/v1/applications/{applicationId}/export_coupons`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/talon/apis/management-api/docs/v1/applications/:applicationId/export_coupons/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 coupons that match the given properties.

> [!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 can contain the following columns:

- `accountid`: The ID of your deployment.
- `applicationid`: The ID of the Application this coupon is related to.
- `attributes`: A json object describing _custom_ referral attribute names and their values.
- `batchid`: The ID of the batch this coupon is part of.
- `campaignid`: The ID of the campaign this coupon is related to.
- `counter`: The number of times this coupon has been redeemed.
- `created`: The creation date in RFC3339 of the coupon code.
- `deleted`: Whether the coupon code is deleted.
- `deleted_changelogid`: The ID of the delete event in the logs.
- `discount_counter`: The amount of discount given by this coupon.
- `discount_limitval`: The maximum discount amount that can be given be this coupon.
- `expirydate`: The end date in RFC3339 of the code redemption period.
- `id`: The internal ID of the coupon code.
- `importid`: The ID of the import job that created this coupon.
- `is_reservation_mandatory`: Whether this coupon requires a reservation to be redeemed.
- `limits`: The limits set on this coupon.
- `limitval`: The maximum number of redemptions of this code.
- `recipientintegrationid`: The integration ID of the recipient of the coupon.
   Only the customer with this integration ID can redeem this code. Available only for personal codes.
- `referralid`: The ID of the referral code that triggered the creation of this coupon (create coupon effect).
- `reservation`: Whether the coupon can be reserved for multiple customers.
- `reservation_counter`: How many times this coupon has been reserved.
- `reservation_limitval`: The maximum of number of reservations this coupon can have.
- `startdate`: The start date in RFC3339 of the code redemption period.
- `value`: The coupon code.

## Path parameters

- `applicationId` integer, required

## Query parameters

- `campaignId` number
- `sort` string
- `value` string
- `createdBefore` string, date-time
- `createdAfter` string, date-time
- `valid` 'expired' | 'validNow' | 'validFuture'
- `usable` 'true' | 'false'
- `referralId` integer
- `recipientIntegrationId` string
- `batchId` string
- `exactMatch` boolean
- `dateFormat` 'excel' | 'ISO8601'
- `campaignState` 'enabled' | 'disabled' | 'archived' | 'scheduled' | 'running' | 'expired' | 'staged'
- `valuesOnly` boolean
- `deletedBefore` string, date-time
- `deletedAfter` string, date-time

## Response `200`

OK

---

[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)
