commercetools icon

commercetools

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

Actions671

Payment-method → Update PaymentMethod by ID

AI-generated

Summary

Update a specific Payment-method in commercetools by its ID and current version number, applying one or multiple update actions.

Inputs

  • Payment-method ID (required) — The unique identifier of the Payment-method to update.
  • Version (required) — The current version of the Payment-method resource, used for concurrency control.
  • Actions (JSON) — A raw JSON array of update actions to apply. When provided and non-empty, this overrides Actions (UI).
  • Actions (UI) — A user-friendly interface to specify one or multiple update actions such as setting custom fields, keys, names, and other Payment-method attributes.

Output shape

a single JSON object representing the updated Payment-method resource returned from the commercetools API

Returns the full updated Payment-method JSON object. Requires specifying the current version to prevent update conflicts. Actions must be properly formatted and valid according to commercetools API specifications.

Examples

Example 1: Update Payment-method method and set it as default

Specify resourceId, current version, and use Actions (UI) to set 'method' and 'default' fields.

Links

Discussion