An import with its skipped and failed records
GET
/api/v1/workspaces/{workspaceId}/import-jobs/{jobId}
const url = 'https://api.crossmart.io/api/v1/workspaces/example/import-jobs/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.crossmart.io/api/v1/workspaces/example/import-jobs/exampleParameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”workspaceId
required
string
jobId
required
string
Responses
Section titled “Responses”Media typeapplication/json
object
id
required
string format: uuid
mode
required
string
format
required
string
fileName
required
The file name, or the channel account a channel import read
string
connectionId
required
The channel connection a channel import reads; null for file imports
string format: uuid
totalCount
required
Records the source holds, when it reports them, to show progress
number
status
required
string
counts
required
Products for create and update imports; stock rows for inventory imports
object
created
required
number
linked
required
Channel products linked to catalog products they matched; zero for file imports
number
updated
required
Products replaced by an update import, variants whose stock an inventory import set, or products a channel import found already linked
number
skipped
required
number
failed
required
number
errorMessage
required
Why the whole file was rejected
string
actor
required
object
userId
required
string format: uuid
userName
required
The user who sent the file; null for API keys and deleted users
string
apiKeyId
required
string format: uuid
apiKeyName
required
The API key that sent the file, if one did
string
createdAt
required
string format: date-time
finishedAt
required
string format: date-time
issues
required
Skipped and failed records, in file order
Array<object>
object
code
required
string
message
required
string
handle
string
sku
string
row
Spreadsheet row number; the header is row 1
number
outcome
required
string
Example
{ "mode": "create", "format": "shopify_csv", "status": "PROCESSING", "issues": [ { "code": "already_exists", "outcome": "SKIPPED" } ]}