younifyd
Menu

Update Prices

Set prices per segment. Prices are applied separately from product content, so updating them never reprocesses the products.

Use it in a workflow

  1. Add a step and choose the Search connector.
  2. Pick the Update Prices action (under database).
  3. Fill in the fields below, then reference the result from later steps as {{updatePrices.response.data}}.

Fields

indexSlugstringrequired

The search index whose prices to update, by slug. Can also be a variable, e.g. {{variables.indexSlug}}.

pricesstringrequired

A JSON array, up to 1,000 per step. amount is a whole number in the currency's smallest unit, so 1999 is £19.99. Like [{"key":"p1","unitKey":"p1-a","segment":"uk","amount":1999},{"key":"p1","unitKey":"p1-a","segment":"uk","priceType":"sale","amount":1499,"validTo":"2026-12-01"}]

Examples

Set a segment price and a sale

£19.99, with a £14.99 sale used only until its end date

json
{
  "indexSlug": "products",
  "prices": "[{\"key\":\"p1\",\"unitKey\":\"p1-a\",\"segment\":\"uk\",\"amount\":1999},{\"key\":\"p1\",\"unitKey\":\"p1-a\",\"segment\":\"uk\",\"priceType\":\"sale\",\"amount\":1499,\"validTo\":\"2026-12-01\"}]"
}

Need more? See the Search guide for connection setup and behaviour shared by every action.