API: Import
What It Does
The Import API brings products into a tieback workspace from your own system. It works like the CSV import: nothing reaches your catalogue until you commit, and you can see what will come in, and what will be left out, before you do.
Who It’s For
Developers connecting an ERP, a PIM or a store to tieback.
Before You Start
- Create an API key with Import products in Settings → API Credentials, and swap it for a token (see API: Credentials). Every call below sends
Authorization: Bearer <token>. - A key with Read products only is refused on every import route (
403). - Every product arrives as Draft, whatever you send. Draft products don’t count toward your plan’s product limit until someone activates them in tieback.
- A SKU your workspace already has is not overwritten: only its empty fields are filled, and the rest are listed as skipped.
Limits
POST /v1/imports
Opens an import. Send an idempotency key (8 to 128 visible characters, no spaces) so a retry never opens a 2nd import.
201 when opened. The same idempotency key again returns the same import with 200. A workspace that is suspended or ended gets 402.
POST /v1/imports/{id}/products
Adds up to 500 products. Call it as many times as you need, up to 50,000 products in the import.
Product fields you can send:
Any other field is left out and listed in left_out_fields by product position. Status, visibility and source fields are always set by tieback.
Custom fields: each key is a custom field your workspace has set up for products (custom.fabric_note). Values are text (up to 5,000 characters), a number, true or false, a date (2026-10-17) or an https:// address, to match the field. A key with a badly formed name, or a value that is a list or an object, is listed in left_out_fields as custom_fields.<key>. When the import is committed, a value for a field the workspace doesn’t have (or that is for lots only), or of the wrong type, is left out with a value_left_out warning (unknown_field, wrong_type or bad_date); read them with GET /v1/imports/{id}. For a SKU already in your workspace, custom fields are only filled where empty; a field that already holds a value keeps it, with a value_present_skipped warning.
Product type: a type that allows only 1 traceability mode also sets that mode, with a traceability_mode_set_by_type warning when you sent another. A type that is not recognised leaves the product without a type, with a product_type_unknown warning. A product that already has a type and passports keeps its type, with a product_type_locked warning. A new product sent without a type gets a product_type_missing warning. None of these stops the product.
Adding products after a check sends the import back to draft: check it again before you commit. Once committing has started, the import takes no more products (409).
POST /v1/imports/{id}/validate
Checks every product. Up to 100 products, the answer comes straight back:
More than 100 products: 202 { "id": "…", "status": "validating" }. Follow it with GET /v1/imports/{id} until the status is validated.
Warnings and errors:
- A warning (
value_left_out) means 1 value is left out and the rest of the product comes in.reasonsays why:not_whole_number,wrong_type,bad_date,not_in_listorunknown_field. - An error means the product won’t come in. Fix it, add it again in a new import, or commit the rest without it.
- Codes for identifiers:
gtin_in_use(another product in your workspace holds this GTIN),gtin_duplicate_in_import(2 new products in this import share a GTIN; the 2nd is refused),sku_in_useandidentifier_in_use(found at commit).
How values are read:
POST /v1/imports/{id}/commit
Brings in every ready product. The import must have been checked (409 otherwise).
More than 100 products: 202 { "id": "…", "status": "committing" }, then follow with GET /v1/imports/{id}. Committing runs as your key: if the key is revoked or the workspace is suspended, it stops.
GET /v1/imports/{id}
Issues come 100 products at a time: pass ?cursor=<next_cursor> for the next page.
DELETE /v1/imports/{id}
Discards an import nothing has been committed from (204). An import with committed products can’t be discarded (409).
Errors
Errors are application/problem+json with title, status, detail and request_id (also in the X-Request-Id header; quote it to support). Another workspace’s import is always 404.