Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/v2025-01-15/reference/create_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.

Create Coupon

POSThttps://a.klaviyo.com/api/coupons

Creates a new coupon.

Revision header
revision: 2025-01-15required
Scopes
coupons:write
Rate limits
Burst: 3/sSteady: 60/m

Headers

  • revision#stringrequired

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

    2025-01-15

Request body

Content type: application/vnd.api+jsonrequired

  • data#objectrequired
    Show 2 fields
    • type#stringrequired
      Allowed values:
      • coupon
    • attributes#objectrequired
      Show 2 fields
      • external_id#stringrequired

        This is the id that is stored in an integration such as Shopify or Magento.

        Example: 10OFF

      • description#stringnullable

        A description of the coupon.

        Example: 10% off for purchases over $50

Responses

201Success

Content type: application/vnd.api+json

  • data#objectrequired
    Show 4 fields
    • type#stringrequired
      Allowed values:
      • coupon
    • id#stringrequired

      The internal id of a Coupon is equivalent to its external id stored within an integration.

      Example: 10OFF

    • attributes#objectrequired
      Show 2 fields
      • external_id#stringrequired

        This is the id that is stored in an integration such as Shopify or Magento.

        Example: 10OFF

      • description#stringnullable

        A description of the coupon.

        Example: 10% off for purchases over $50

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