---
title: "Get Coupon ID for Coupon Code"
description: "How to call Get Coupon ID for Coupon Code (GET /api/coupon-codes/{id}/relationships/coupon) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2026-07-15/reference/get_coupon_id_for_coupon_code"
revision: "2026-07-15"
latestUrl: "https://developers.klaviyo.com/en/reference/get_coupon_id_for_coupon_code"
operationId: "get_coupon_id_for_coupon_code"
aliases: ["get_coupon_relationships_coupon_codes"]
method: "GET"
endpoint: "https://a.klaviyo.com/api/coupon-codes/{id}/relationships/coupon"
authentication: "privateKey"
scopes: ["coupons:read"]
rateLimits: {"burst":"75/s","steady":"750/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_coupon_id_for_coupon_code.json"
related: ["https://developers.klaviyo.com/en/v2026-07-15/reference/coupons/llms.txt","https://developers.klaviyo.com/en/v2026-07-15/reference/get_coupons.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_coupon.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_coupon.md","https://developers.klaviyo.com/en/v2026-07-15/reference/update_coupon.md","https://developers.klaviyo.com/en/v2026-07-15/reference/delete_coupon.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_coupon_codes.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_coupon_code.md","https://developers.klaviyo.com/en/v2026-07-15/reference/create_coupon_code.md","https://developers.klaviyo.com/en/v2026-07-15/reference/update_coupon_code.md","https://developers.klaviyo.com/en/v2026-07-15/reference/delete_coupon_code.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_bulk_create_coupon_code_jobs.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_bulk_create_coupon_codes_job.md","https://developers.klaviyo.com/en/v2026-07-15/reference/bulk_create_coupon_codes.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_coupon_codes_for_coupon.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_coupon_code_ids_for_coupon.md","https://developers.klaviyo.com/en/v2026-07-15/reference/get_coupon_for_coupon_code.md"]
---

# Get Coupon ID for Coupon Code

> This is the Markdown version of https://developers.klaviyo.com/en/v2026-07-15/reference/get_coupon_id_for_coupon_code

```http
GET https://a.klaviyo.com/api/coupon-codes/{id}/relationships/coupon
```

Gets the coupon relationship associated with the given coupon code id

- Revision header: `revision: 2026-07-15` (required)
- Scopes: `coupons:read`
- Rate limits: Burst: `75/s`, Steady: `750/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_coupon_id_for_coupon_code.json)

## Example request

```bash
curl --request GET \
     --url 'https://a.klaviyo.com/api/coupon-codes/10OFF/relationships/coupon' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-07-15'
```

## Path parameters

- `id` (string, required): The ID of the coupon to look up the relationship of. Example: `10OFF`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-07-15`

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object, required, nullable)
  - `type` (string, required): Allowed values: `coupon`
  - `id` (string, required): The internal id of a Coupon is equivalent to its external id stored within an integration. Example: `10OFF`
- `links` (object)
  - `self` (string<uri>, required)
- `meta` (object): Response-level metadata
  - `agent_hints` (object): Optional hints emitted by the API for agent callers
    - `next_steps` (string[]): Suggested follow-up actions for agents to take after this response

#### Example response body

```json
{
  "data": {
    "type": "coupon",
    "id": "10OFF"
  },
  "links": {
    "self": "https://www.example.com"
  },
  "meta": {
    "agent_hints": {
      "next_steps": [
        "string"
      ]
    }
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
