commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Standalone Price → Update StandalonePrice by ID

AI-generated

Summary

Update a Standalone Price by its unique ID in the commercetools platform using the specified version and a list of update actions.

Inputs

  • Standalone Price ID (required) — The unique identifier of the Standalone Price to update.
  • Version (required) — The current version number of the Standalone Price resource for optimistic concurrency control.
  • Actions (JSON) — A raw JSON array of update actions to apply; if provided and not empty, this overrides the UI-based actions.
  • Actions (UI) — A user-friendly interface to specify one or multiple update actions to be performed on the Standalone Price, such as changing the value, setting custom fields, adding price tiers, etc.

Output shape

a single JSON object representing the updated Standalone Price resource as returned by the commercetools API

Requires correct version to avoid conflicts; the API call is authenticated using commercetools OAuth2 credentials. Errors include API error messages wrapped in n8n's NodeApiError. Actions can be specified either as raw JSON or via the UI form; raw JSON takes precedence when provided.

Examples

Example 1: Update the value of a Standalone Price by its ID to a new monetary amount, ensuring version consistency.

Set 'Standalone Price ID' to the target ID, 'Version' to the current version number, and use 'Actions (UI)' or 'Actions (JSON)' to specify a ChangeValue action with the new price.

Links

Discussion