commercetools icon

commercetools

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

Actions671

Recurring-order → Update RecurringOrder by ID

AI-generated

Summary

Update a specific Recurring Order in commercetools by its ID and version, applying one or more update actions to modify its properties.

Inputs

  • Recurring-order ID (required) — The unique identifier of the recurring order to update.
  • Version (required) — The current version number of the recurring order for concurrency control.
  • Actions (JSON) — A raw JSON array of update actions to apply, which if provided overrides the UI-based actions.
  • Actions (UI) — One or more update actions selected and configured via UI, such as setting custom fields, changing the state, or adjusting schedule properties.

Output shape

a single JSON object representing the updated Recurring Order resource

The node returns the updated recurring order data from the commercetools API. If update actions are provided in JSON, they override those specified via the UI. Version is required to prevent conflicting updates.

Examples

Example 1: Update the recurring order to set a custom field 'priority' to 'high' and change the recurring order state.

Specify Recurring-order ID and current Version, then add these actions in the UI: SetCustomField (name: 'priority', value: 'high'), SetRecurringOrderState (recurringOrderState with desired state JSON).

Example 2: Update the recurring order to change its expiration date by providing a raw JSON actions array.

Provide Recurring-order ID, Version, and supply an Actions (JSON) array specifying a SetExpiresAt action with the new expiration date.

Links

Discussion