TanqoryDocs

tanqoryExtCustomersImport

  • Mutation
  • Customers and B2B

Imports rows of a customer CSV. A row matches an existing customer of the store by its email (case-insensitive), else by its phone (in the store's country format). A row with no match creates a customer (with the row's default address); a match is updated from the row (its default address updated, or created when it has none) when overwrite is true, and skipped when it is false. Each row is saved on its own: a row that fails does not stop the others. At most 250 rows per call (userError on rows otherwise).

Arguments

ArgumentTypeRequiredDefault
overwriteBoolean!Required
rows[TanqoryExtCustomerImportRowInput!]!Required

Returns

TanqoryExtCustomersImportPayload Return type for tanqoryExtCustomersImport.

FieldTypeDescription
results[TanqoryExtCustomerImportRowResult!]

One result per row; null when the call itself was refused (see userErrors).

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 TanqoryExtCustomersImport($overwrite: Boolean!, $rows: [TanqoryExtCustomerImportRowInput!]!) {\n  tanqoryExtCustomersImport(overwrite: $overwrite, rows: $rows) {\n    userErrors {\n      field\n      message\n    }\n  }\n}","variables":{"overwrite":false,"rows":[]}}'

Built from commit c0b3fb3fdef7 · API version 2026-10