Product and synchronization tools
Product records belong to Connections. The same SKU can have a separate product record on each Connection.
Synchronization directions
Section titled “Synchronization directions”POS source → connections_import_products → SqquidPOS source → connections_import_inventory → SqquidSqquid → products_export → the product record's sales ConnectionDo not use products_export to import a product from a POS source.
products_list
Section titled “products_list”Requires products:read. Read-only.
Pass connection_id from connections_list. List the source Connection to inspect source products, or a sales Connection to inspect its exported copies.
The result includes parent products, variants, prices, sync settings, errors, and stock per location. connection.read_only identifies POS products that cannot be edited here.
Optional filters include search, sku_or_alu, brands, sync, has_error, exported, sale, and sync_status_code. To filter stock, use qty, qty_operation, and optionally location. Creation and export date ranges are also supported. Read tools/list for the complete filter schema.
Pagination uses page, default 1, and limit from 1 to 100, default 25. sort selects the column and order selects asc or desc; defaults are id and desc.
products_brands
Section titled “products_brands”Requires products:read. Read-only. No input is required.
Returns brands across the Account’s Connections. Use these values for product filters and brand buffers.
products_get
Section titled “products_get”Read one product and all its variants.
Requires products:read. Read-only.
| Input | Required | Description |
|---|---|---|
id |
Conditional | Product or variant ID. This value takes priority over sku. |
sku |
Conditional | Exact SKU. Use it when id is not available. |
connection_id |
No | Limits a SKU search to one Connection. |
Supply id or sku.
A variant ID returns the parent product and all variants.
If one SKU exists on several Connections, the tool lists the matches. Call the tool again with connection_id or a product ID.
The result includes synchronization mode, export state, the last error, price, brand, visibility, URL, and variants.
products_errors
Section titled “products_errors”List products and variants whose last synchronization failed.
Requires products:read. Read-only.
| Input | Required | Default | Description |
|---|---|---|---|
connection_id |
No | All Connections | Search one Connection. |
limit |
No | 25 |
Parent products per Connection. Minimum 1. Maximum 100. |
page |
No | 1 |
One-based page number for each searched Connection. |
When connection_id is absent, the page and limit apply to every Connection separately. Read by_connection to find each total and has_more value.
The tool returns the original synchronization error message. Use that message to identify the cause.
products_export
Section titled “products_export”Queue one product for export from Sqquid to its sales Connection.
Requires products:write. Queues background work.
| Input | Required | Description |
|---|---|---|
id |
Yes | Product or variant ID from products_get or products_errors. |
A variant ID queues its parent product. Repeated calls are safe.
The product record determines the destination Connection. To export the same SKU to another Connection, first find that Connection’s product record.
The result status is queued. Do not report that the export is complete. Call products_get later and check the export state and last error.
products_update
Section titled “products_update”Requires products:write. User approval is required.
Pass connection_id and a changes list with 1 to 100 edits. Each edit contains product_id, field, and value.
POS products are read-only. On a sales Connection, accepted fields depend on whether the record is a parent product or variant:
| Records | Fields |
|---|---|
| Parent products | title, description, shortDescription, brand, categories, attribute1Label, attribute2Label, status, syncMode |
| Variants | attribute1Value, attribute2Value |
| Both | sku, alu, price, compareAt, sync |
categories is an array of category paths, with each path an array of names. alu is an array of barcodes. Set compareAt to null to clear it. sync is a boolean.
status accepts visible, not_visible, or preview. syncMode accepts full_sync, inventory_sync, or inventory_and_pricing_sync.
Saved edits queue product exports. Read both updated and failed: one edit can succeed while another fails. applied: true does not mean every edit succeeded or every export finished.
Select products for bulk changes
Section titled “Select products for bulk changes”Both products_update_selection and products_resync require connection_id and one of:
product_ids: 1 to 500 product or variant IDs. A variant selects its parent product.filter: the product filters used byproducts_list, selecting up to 10,000 products. Optionalexcluded_product_idsexcludes up to 500 IDs from this selection.
Explicit IDs take priority over a filter. An empty filter selects all products on that Connection. Review the selection before changing it.
products_update_selection
Section titled “products_update_selection”Requires products:write. User approval is required. POS products are read-only.
Supply the selection and an update object with one of these field/value pairs:
field |
value |
|---|---|
sync |
true or false |
status |
visible or not_visible |
syncMode |
full_sync or inventory_sync |
Status and sync-mode changes apply to parent products and their variants. The tool returns counts of selected records, changed records, and parent products queued for export.
products_resync
Section titled “products_resync”Requires products:write. Enables sync and queues exports without a separate approval request.
Supply the selection above. For example, use filter: { has_error: true } to select failed products on one Connection. This tool turns sync on as well as retrying exports.
Check products_get or products_list afterward. A queued count does not confirm that the sales Connection finished updating.
Import from a POS source
Section titled “Import from a POS source”Use these Connection tools:
connections_import_inventoryqueues a full inventory import.connections_import_productsqueues a full or recent product import.
See Connection tools.