GET
/
product-jobs
curl --request GET \
  --url https://api.fabric.inc/v3/product-jobs \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "877f1f77bcf86cd799439087",
      "type": "ITEM_VARIANT_EXPORT",
      "inputFileId": "327f1f77bcf86cd799439045",
      "outputFiles": [
        "507f1f77bcf86cd7994390163, 967f1f77bcf86cd799439058"
      ],
      "errorFiles": [
        "887f1f77bcf86cd799439011, 997f1f77bcf86cd799439074"
      ],
      "progressTracker": {
        "updatedAt": "2023-02-14T22:10:30.618Z",
        "totalCount": 100000,
        "processedCount": 40000,
        "errorCount": 10
      },
      "status": "COMPLETED",
      "statusMessage": "100% completed",
      "additionalDetails": {
        "itemsCreated": 10,
        "itemsUpdated": 10,
        "variantsCreated": 10,
        "variantsUpdated": 10,
        "bundlesCreated": 10,
        "bundlesUpdated": 10,
        "attributeCreated": 10,
        "attributeUpdated": 10,
        "categoriesCreated": 10,
        "categoriesUpdated": 10,
        "collectionCreated": 5,
        "collectionUpdated": 10
      },
      "createdAt": "2021-09-14T22:10:30.618Z",
      "completedAt": "2021-09-14T22:10:30.618Z",
      "updatedBy": "test@email.com",
      "updatedAt": "2021-09-14T22:10:30.618Z"
    }
  ],
  "offset": 5,
  "limit": 10,
  "count": 100
}

Authorizations

Authorization
string
header
required

S2S access token (JWT) from fabric Identity service (during login)

Headers

x-fabric-tenant-id
string

A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.

Example:

"517fa9dfd42d8b00g1o3k312"

x-fabric-request-id
string

Unique request ID

Example:

"263e731c-45c8-11ed-b878-0242ac120002"

Query Parameters

ids
string

Supports up to 15 comma-separated job IDs. Note: <br />1. This parameter can't be combined with any other query parameter. <br />2. Pagination isn't supported when this parameter is used.

type

Job types

Available options:
ITEM_VARIANT_EXPORT,
ITEM_VARIANT_IMPORT,
BUNDLE_EXPORT,
BUNDLE_IMPORT,
ATTRIBUTE_IMPORT,
ATTRIBUTE_EXPORT,
CATEGORY_IMPORT,
CATEGORY_EXPORT,
COLLECTION_IMPORT,
COLLECTION_EXPORT,
ATTRIBUTE_JOB,
PRODUCT_JOB,
CATEGORY_JOB,
COLLECTION_JOB,
PRODUCT_BULK_CATEGORY_UPDATE,
PRODUCT_DENORM_JOB
Example:

"ITEM_VARIANT_EXPORT"

inputFileIds
string

Supports up to 15 comma-separated file IDs. Note: <br /> 1. This can only be combined with the query parameter lastJobOnly. <br /> 2. Pagination isn't supported when this parameter is used.

lastJobOnly
boolean

true: The last job that meets the query parameters <br /> false: Not necessarily the last job Note: Only applicable with type and inputFileIds.

offset
integer
default:0

Number of records to skip before returning records. For example, offset=20, limit=10 returns records 21-30.

Example:

2

limit
integer
default:10

Maximum number of records per page

Example:

20

Response

200
application/json
OK

Details of jobs

data
object[]

Job details

offset
integer
default:0

Number of records to skip before returning records. For example, offset=20, limit=10 returns records 21-30.

Example:

5

limit
integer
default:10

Maximum number of records per page

Example:

10

count
integer

Total number of records

Example:

100

Was this page helpful?