TanqoryDocs

tanqoryExtProductImportCreate

  • Mutation
  • Products

Reads a product CSV and records it as an import in status CREATED, with its products, preview and file problems; nothing is written to the catalog until tanqoryExtProductImportSubmit. The file is the staged upload at stagedUploadPath (stagedUploadsCreate, resource FILE, text/csv), or csv itself when the deployment has no upload target (at most what one request carries). At most 15 MB ("Your product CSV can't exceed 15 MB"). A file without a Title column, with both a Barcode and a Barcodes column, or with no product is refused with a userError.

Arguments

ArgumentTypeRequiredDefault
csvStringOptional
filenameStringOptional
overwriteBooleanOptionalfalse
publishToAllChannelsBooleanOptionaltrue
stagedUploadPathStringOptional

Returns

TanqoryExtProductImportCreatePayload Return type for tanqoryExtProductImportCreate.

FieldTypeDescription
productImportTanqoryExtProductImport
userErrors[UserError!]!

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_ACCESS_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
  -H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"mutation TanqoryExtProductImportCreate {\n  tanqoryExtProductImportCreate {\n    productImport { id }\n    userErrors {\n      field\n      message\n    }\n  }\n}","variables":{}}'

Built from commit c0b3fb3fdef7 · API version 2026-10