Sync product to store
sync_productPublishes a product from your import list to a connected Shopify or WooCommerce store at your chosen absolute retail selling price, with optional per-variant prices.
Instructions
Publish a product from your import list to your connected Shopify/WooCommerce store at the selling price you choose. selling_price is the ABSOLUTE retail price in your store currency (e.g. 24.99) — NOT a markup multiplier or percentage; it must be at or above the wholesale price. For products with variants, the variation (id, dropship_id) pairs are resolved automatically (the product is added to the import list first if needed); every variant gets selling_price unless overridden in variation_prices. When the client supports it, the user is asked to confirm the product, price and wholesale cost first; if they decline, nothing is synced and the result has status 'declined' (or 'cancelled' if they dismissed the prompt). Either way the product stays in the import list. Runs asynchronously — check progress with get_sync_status. Requires HERTWILL_API_KEY.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"product_id": "<product_id>",
"selling_price": "<selling_price>"
},
"name": "sync_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language to publish the description in, e.g. 'EN'. | |
| currency | No | Store currency code, e.g. 'EUR'. Defaults to the store's currency. | |
| product_id | Yes | Catalog product id — the import-list item's `id` (NOT its `product_id` record id). | |
| selling_price | Yes | ABSOLUTE selling price in your store currency (e.g. 24.99). Not a multiplier like 1.5. | |
| variation_prices | No | Optional per-variant absolute prices, keyed by catalog variation id, e.g. {"20972": 29.99}. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | 'declined' or 'cancelled' when the user did not confirm; otherwise the API's sync status. | |
| variations_submitted | No |