Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/v2025-01-15/reference/get_coupon_codes_for_coupon.md. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2025-01-15

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

Get Coupon Codes for Coupon

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

Gets a list of coupon codes associated with the given coupon id

Revision header
revision: 2025-01-15required
Scopes
coupon-codes:read
Rate limits
Burst: 75/sSteady: 700/m

Path parameters

  • id#stringrequired

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

    Example: 10OFF

Query parameters

  • fields[coupon-code]#string[]

    For more information please visit API overview

    Allowed values:
    • unique_code
    • expires_at
    • status
  • 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
    status: equals
    coupon.id: any, equals
    profile.id: any, equals

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

  • page[cursor]#string

    For more information please visit API overview

Headers

  • revision#stringrequired

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

    2025-01-15

Responses

200Success

Content type: application/vnd.api+json

  • data#object[]required
    Show 5 fields
    • relationships#object
      Show 2 fields
      • coupon#object
        Show 1 field
      • profile#object
        Show 1 field
    • 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

    • attributes#objectrequired
      Show 3 fields
      • unique_code#stringnullable

        This is a unique string that will be or is assigned to each customer/profile and is associated with a coupon.

        Example: ASD325FHK324UJDOI2M3JNES99

      • expires_at#string<date-time>nullable

        The datetime when this coupon code will expire. If not specified or set to null, it will be automatically set to 1 year.

        Example: 2022-11-08T00:00:00+00:00

      • status#stringnullable

        The current status of the coupon code.

        Allowed values:
        • ASSIGNED_TO_PROFILE
        • DELETING
        • PROCESSING
        • UNASSIGNED
        • USED
        • VERSION_NOT_ACTIVE

        Example: UNASSIGNED

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