Import history of a workspace, newest first
const url = 'https://api.crossmart.io/api/v1/workspaces/example/import-jobs?status=PROCESSING&format=shopify_csv&direction=desc&limit=20';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?status=PROCESSING&format=shopify_csv&direction=desc&limit=20'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Where the records came from: a file of this format, or a channel
nextCursor from the previous page
1-based page number, for tables with page numbers. It wins over cursor.
Responses
Section titled “Responses”object
object
The file name, or the channel account a channel import read
The channel connection a channel import reads; null for file imports
Records the source holds, when it reports them, to show progress
Products for create and update imports; stock rows for inventory imports
object
Channel products linked to catalog products they matched; zero for file imports
Products replaced by an update import, variants whose stock an inventory import set, or products a channel import found already linked
Why the whole file was rejected
object
The user who sent the file; null for API keys and deleted users
The API key that sent the file, if one did
Null on the last page
How many match in all, for page numbers
Example
{ "items": [ { "mode": "create", "format": "shopify_csv", "status": "PROCESSING" } ]}