PXM Products/
PXM Products Jobs API/
Get Job Errors

Get Job Errors

The jobs endpoint supports:

  • Viewing the status of the https://api.moltin.com/pcm/products/:productId/build request and the errors in the build. These jobs have a type of child-products.
  • Viewing the status of product import requests. These jobs have a type of product-import.

GET Get a Job’s Errors

https://api.moltin.com/pcm/jobs/:jobId/errors

Parameters

Path parameters

NameRequiredTypeDescription
jobIdRequiredstringThe ID of the job to retrieve errors for.

Headers

NameRequiredTypeDescription
AuthorizationRequiredstringThe Bearer token required to get access to the API.

Request Example

curl -X GET https://api.moltin.com/pcm/job/:jobId/errors \
     -H "Authorization: Bearer XXXX" \
     -H "Content-Type: application/json" \

Response Examples

200 OK

{
  "data": [
    {
      "type": "pim-job-error",
      "id": "2950cae3-1050-4c43-9fbd-2aa60dc5c249",
      "attributes": {
          "message": "data.attributes.sku: Must be unique amongst products."
    }
  }
]
}
{
    "errors": [
        {
            "status": "422",
            "title": "Failed Validation",
            "detail": "missing required csv header: name"
        }
    ]
}

Was this helpful?

Learn

Docs