commercetools icon

commercetools

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

Actions671

Payment-method → Delete PaymentMethod by ID

AI-generated

Summary

Delete a PaymentMethod in commercetools by specifying its unique ID and current version number.

Inputs

  • Payment-method ID (required) — The unique identifier of the PaymentMethod to delete.
  • Version (required) — The current version number of the PaymentMethod for concurrency control; required to authorize deletion.

Output shape

a single JSON object reflecting the API response to the deletion request

Returns the API's deletion confirmation object or error details if the deletion fails.

Examples

Example 1: Remove an obsolete payment method by providing its ID and latest version.

Set 'Payment-method ID' to the target PaymentMethod's ID and 'Version' to its current version to ensure correct deletion.

Links

Discussion