---
title: "Get Bulk Create Coupon Codes Job"
description: "How to call Get Bulk Create Coupon Codes Job (GET /api/coupon-code-bulk-create-jobs/{job_id}) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2025-01-15/reference/get_bulk_create_coupon_codes_job"
revision: "2025-01-15"
latestUrl: "https://developers.klaviyo.com/en/reference/get_bulk_create_coupon_codes_job"
operationId: "get_bulk_create_coupon_codes_job"
aliases: ["get_coupon_code_bulk_create_job"]
method: "GET"
endpoint: "https://a.klaviyo.com/api/coupon-code-bulk-create-jobs/{job_id}"
authentication: "privateKey"
scopes: ["coupon-codes:read"]
rateLimits: {"burst":"75/s","steady":"700/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
jsonApi: {"include":["coupon-codes"],"fields":{"coupon-code-bulk-create-job":["status","created_at","total_count","completed_count","failed_count","completed_at","errors","expires_at"],"coupon-code":["unique_code","expires_at","status"]}}
related: ["https://developers.klaviyo.com/en/v2025-01-15/reference/coupons/llms.txt","https://developers.klaviyo.com/en/v2025-01-15/reference/get_coupons.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_coupon.md","https://developers.klaviyo.com/en/v2025-01-15/reference/create_coupon.md","https://developers.klaviyo.com/en/v2025-01-15/reference/update_coupon.md","https://developers.klaviyo.com/en/v2025-01-15/reference/delete_coupon.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_coupon_codes.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_coupon_code.md","https://developers.klaviyo.com/en/v2025-01-15/reference/create_coupon_code.md","https://developers.klaviyo.com/en/v2025-01-15/reference/update_coupon_code.md","https://developers.klaviyo.com/en/v2025-01-15/reference/delete_coupon_code.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_bulk_create_coupon_code_jobs.md","https://developers.klaviyo.com/en/v2025-01-15/reference/bulk_create_coupon_codes.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_coupon_codes_for_coupon.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_coupon_code_ids_for_coupon.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_coupon_for_coupon_code.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_coupon_id_for_coupon_code.md"]
---

# Get Bulk Create Coupon Codes Job

> This is the Markdown version of https://developers.klaviyo.com/en/v2025-01-15/reference/get_bulk_create_coupon_codes_job

```http
GET https://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-15` (required)
- Scopes: `coupon-codes:read`
- Rate limits: Burst: `75/s`, Steady: `700/m`

## Example request

```bash
curl --request GET \
     --url 'https://a.klaviyo.com/api/coupon-code-bulk-create-jobs/01GSQPBF74KQ5YTDEPP41T1BZH' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2025-01-15'
```

## Path parameters

- `job_id` (string, required): ID of the job to retrieve. Example: `01GSQPBF74KQ5YTDEPP41T1BZH`

## Query parameters

- `fields[coupon-code-bulk-create-job]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2025-01-15/reference.md) 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](https://developers.klaviyo.com/en/v2025-01-15/reference.md) Allowed values: `unique_code`, `expires_at`, `status`
- `include` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2025-01-15/reference.md) Allowed values: `coupon-codes`

## Headers

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

## Responses

### 200: Success

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

- `data` (object, required)
  - `relationships` (object)
    - `coupon-codes` (object)
      - `data` (object[]): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
  - `type` (string, required): Allowed values: `coupon-code-bulk-create-job`
  - `id` (string, required): Unique identifier for retrieving the job. Generated by Klaviyo.
  - `attributes` (object, required)
    - `status` (string, required): 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` (integer, required): The total number of operations to be processed by the job. See `completed_count` for the job's current progress. Example: `10`
    - `completed_count` (integer, nullable): The total number of operations that have been completed by the job. Default: `0` Example: `9`
    - `failed_count` (integer, nullable): 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.
      - `id` (string, required): Unique identifier for the error. Example: `e4eebb08-b055-4a6f-bb13-c8cb69c9eb94`
      - `code` (string, required): A code for classifying the error type. Example: `invalid`
      - `title` (string, required): A high-level message about the error. Example: `Invalid input`
      - `detail` (string, required): Specific details about the error. Example: `The payload provided in the request is invalid.`
      - `source` (object, required): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
    - `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`
  - `links` (object, required)
    - `self` (string<uri>, required)
- `included` (object[])
  - `type` (string, required): Allowed values: `coupon-code`
  - `id` (string, required): 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` (object, required)
    - `unique_code` (string, nullable): 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` (string, nullable): The current status of the coupon code. Allowed values: `ASSIGNED_TO_PROFILE`, `DELETING`, `PROCESSING`, `UNASSIGNED`, `USED`, `VERSION_NOT_ACTIVE` Example: `UNASSIGNED`
  - `links` (ObjectLinks, required): Same fields as the first ObjectLinks above.

#### Example response body

```json
{
  "data": {
    "relationships": {
      "coupon-codes": {
        "data": [
          {
            "type": "coupon-code",
            "id": "10OFF-ASD325FHK324UJDOI2M3JNES99"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      }
    },
    "type": "coupon-code-bulk-create-job",
    "id": "string",
    "attributes": {
      "status": "processing",
      "created_at": "2022-11-08T00:00:00+00:00",
      "total_count": 10,
      "completed_count": 9,
      "failed_count": 1,
      "completed_at": "2022-11-08T00:00:00+00:00",
      "errors": [
        {
          "id": "e4eebb08-b055-4a6f-bb13-c8cb69c9eb94",
          "code": "invalid",
          "title": "Invalid input",
          "detail": "The payload provided in the request is invalid.",
          "source": {
            "pointer": "/data"
          }
        }
      ],
      "expires_at": "2022-11-08T00:00:00+00:00"
    },
    "links": {
      "self": "https://www.example.com"
    }
  },
  "included": [
    {
      "type": "coupon-code",
      "id": "10OFF-ASD325FHK324UJDOI2M3JNES99",
      "attributes": {
        "unique_code": "ASD325FHK324UJDOI2M3JNES99",
        "expires_at": "2022-11-08T00:00:00+00:00",
        "status": "UNASSIGNED"
      },
      "links": {
        "self": "https://www.example.com"
      }
    }
  ]
}
```

### 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"
      }
    }
  ]
}
```
