commercetools icon

commercetools

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

Actions671

Payment-method → Delete PaymentMethod by Key

AI-generated

Summary

Delete a Payment-method in commercetools by its unique key and specified version to remove it from the project.

Inputs

  • Payment-method Key (required) — The unique key identifying the Payment-method to delete.
  • Version (required) — The current version number of the Payment-method for concurrency control; must match the resource version to be deleted.

Output shape

a single JSON object representing the deleted Payment-method resource, including its data fields as returned by the API

Requires valid credentials for commercetools OAuth2 API. Operation returns the full deleted Payment-method object on success or throws an error if the resource does not exist or the version is incorrect.

Examples

Example 1: Delete a Payment-method with key 'pm-key-123' and version 5.

Set 'Payment-method Key' parameter to 'pm-key-123' and 'Version' parameter to 5.

Links

Discussion