Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/v2025-01-15/reference/get_bulk_create_coupon_codes_job.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 Bulk Create Coupon Codes Job

GEThttps://a.klaviyo.com/api/coupon-code-bulk-create-jobs/{job_id}

Get a coupon code bulk create job with the given job ID.

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

Path parameters

  • job_id#stringrequired

    ID of the job to retrieve.

    Example: 01GSQPBF74KQ5YTDEPP41T1BZH

Query parameters

  • fields[coupon-code-bulk-create-job]#string[]

    For more information please visit API overview

    Allowed values:
    • status
    • created_at
    • total_count
    • completed_count
    • failed_count
    • completed_at
    • errors
    • expires_at
  • fields[coupon-code]#string[]

    For more information please visit API overview

    Allowed values:
    • unique_code
    • expires_at
    • status
  • include#string[]

    For more information please visit API overview

    Allowed values:
    • coupon-codes

Headers

  • revision#stringrequired

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

    2025-01-15

Responses

200Success

Content type: application/vnd.api+json

  • data#objectrequired
    Show 5 fields
    • relationships#object
      Show 1 field
      • coupon-codes#object
        Show 2 fields
        • data#object[]
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • coupon-code
          • id#stringrequired

            IDs of the created coupon codes.

            Example: 10OFF-ASD325FHK324UJDOI2M3JNES99

    • type#stringrequired
      Allowed values:
      • coupon-code-bulk-create-job
    • id#stringrequired

      Unique identifier for retrieving the job. Generated by Klaviyo.

    • attributes#objectrequired
      Show 8 fields
      • status#stringrequired

        Status of the asynchronous job.

        Allowed values:
        • cancelled
        • complete
        • processing
        • queued

        Example: processing

      • created_at#string<date-time>required

        The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).

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

      • total_count#integerrequired

        The total number of operations to be processed by the job. See completed_count for the job's current progress.

        Example: 10

      • completed_count#integernullable

        The total number of operations that have been completed by the job.

        Default: 0

        Example: 9

      • failed_count#integernullable

        The total number of operations that have failed as part of the job.

        Default: 0

        Example: 1

      • completed_at#string<date-time>nullable

        Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).

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

      • errors#object[]nullable

        Array of errors encountered during the processing of the job.

        Show 5 fields
        • id#stringrequired

          Unique identifier for the error.

          Example: e4eebb08-b055-4a6f-bb13-c8cb69c9eb94

        • code#stringrequired

          A code for classifying the error type.

          Example: invalid

        • title#stringrequired

          A high-level message about the error.

          Example: Invalid input

        • detail#stringrequired

          Specific details about the error.

          Example: The payload provided in the request is invalid.

        • source#objectrequired
          Show 1 field
          • pointer#stringnullable

            A pointer to the source of the error in the request payload.

            Default: /data

            Example: /data

      • expires_at#string<date-time>nullable

        Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).

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

  • included#object[]
    Show 4 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

    • 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