Import products
import_productsStore products in Foldsquare so they can be put in a catalog. It takes products already in the standard shape — foldsquare://schemas/product-import.json describes it. There is no server-side parser: a spreadsheet, CSV or plain list arrives converted into that shape, which is what lets any column naming or export dialect work. Only title is required. id (or failing that sku) is what identifies the product afterwards. Products that cannot be stored are reported individually and the rest still land. On a connected store these are found with search_products source: "foldsquare" — they are not in the store, so the default search does not see them. A product with the same id (or sku) as one already held is UPDATED with the fields given rather than duplicated; onExisting: "skip" leaves such rows as they are.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| products | Yes | Products in the standard import shape | |
| onExisting | No | What to do with a product already held under the same id: update it (default) or skip it | |
| idempotencyKey | No | Any string unique to this import; a retry with the same key returns the first result instead of importing again |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| created | No | ||
| skipped | No | ||
| updated | No | ||
| imported | Yes | ||
| products | No | ||
| rejected | Yes | Rows not stored, each with why; the rest still landed | |
| replayed | No | ||
| skippedProducts | No |