productImport
Requires permission products:import:read.
Status/progress of one import.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query ProductImport($importId: String!) {
productImport(importId: $importId) {
id
status
createdAt
chunkCheckpoint
createCount
errorRows
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query ProductImport($importId: String!) {\n productImport(importId: $importId) {\n id\n status\n createdAt\n chunkCheckpoint\n createCount\n errorRows\n }\n}",
"variables": {
"importId": "string"
}
}
EOF
Variables:
{
"importId": "string"
}
Response:
{
"data": {
"productImport": {
"id": "string",
"status": "COMMITTING",
"createdAt": "2025-01-15T00:00:00Z",
"chunkCheckpoint": 0,
"createCount": 0,
"errorRows": 0
}
}
}
productImport(
importId: String!
): ProductImportEntity!
Arguments
productImport.importId ● String! non-null scalar
The ID of the import.
Type
ProductImportEntity object
A product import and how far it has got.