Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/v2026-07-15/reference/get_coupon_code_ids_for_coupon.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15/openapi/stable/apis/get_coupon_code_ids_for_coupon.json. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2026-07-15

You're reading the reference for API revision 2026-07-15. The latest revision is 2026-10-15. See this page in the latest revision.

Get Coupon Code IDs for Coupon

GEThttps://a.klaviyo.com/api/coupons/{id}/relationships/coupon-codes

Gets a list of coupon code relationships associated with the given coupon id

Revision header
revision: 2026-07-15required
Scopes
coupon-codes:read
Rate limits
Burst: 75/sSteady: 750/m

Path parameters

  • id#stringrequired

    The ID of the coupon to look up the relationship of.

    Example: 10OFF

Query parameters

  • filter#string

    For more information please visit API overview
    Allowed field(s)/operator(s):
    expires_at: greater-or-equal, greater-than, less-or-equal, less-than (date-time)
    status: equals (allowed values: 'UNASSIGNED', 'PROCESSING', 'ASSIGNED_TO_PROFILE', 'VERSION_NOT_ACTIVE', 'DELETING', 'USED')
    profile.id: any, equals (string)

    Example: less-than(expires_at,2022-11-08T00:00:00+00:00)

  • page[cursor]#string

    For more information please visit API overview

  • page[size]#integer

    Default: 100. Min: 1. Max: 100.

Headers

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2026-07-15

Responses

200Success

Content type: application/vnd.api+json

  • data#object[]required
    Show 2 fields
    • type#stringrequired
      Allowed values:
      • coupon-code
    • id#stringrequired

      The id of a coupon code is a combination of its unique code and the id of the coupon it is associated with.

      Example: 10OFF-ASD325FHK324UJDOI2M3JNES99

  • meta#object

    Response-level metadata

    Show 1 field
    • agent_hints#object

      Optional hints emitted by the API for agent callers

      Show 1 field
      • next_steps#string[]

        Suggested follow-up actions for agents to take after this response

4XXClient Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string