---
title: "Job"
description: >
  A job corresponds to some long running task that the client should poll for status.
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/job'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/job.md'
---
# Job

A job corresponds to some long running task that the client should poll for status.

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`Job`

## Fields

* `done`

  [Boolean](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/boolean.md)

  This indicates if the job is still queued or has been run.
  
  

* `id`

  [ID](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  A globally-unique ID that's returned when running an asynchronous mutation.

## Schema Definition

```graphql
type Job { 
	done: Boolean
	id: ID 
}
```

## Field from

* [DiscountCodeBulkDeactivatePayload](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-bulk-deactivate-payload.md).job

  An asynchronous job to deactivate code discounts.

* [DiscountCodeBulkDeletePayload](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-bulk-delete-payload.md).job

  The asynchronous job that deletes the code discounts.

* [DiscountCodeRedeemCodeBulkDeletePayload](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-redeem-code-bulk-delete-payload.md).job

  An asynchronous job to remove discount redemption codes.

* [DiscountAutomaticBulkDeletePayload](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-automatic-bulk-delete-payload.md).job

  Asynchronous to delete automatic discounts.

* [DiscountCodeBulkActivatePayload](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-bulk-activate-payload.md).job

  The asynchronous job that activates the code discounts.

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

