commercetools icon

commercetools

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

Actions671

Payment → Delete Payment by ID

AI-generated

Summary

Delete a payment from the commercetools project by providing its unique Payment ID and the current version number for concurrency control.

Inputs

  • Payment ID (required) — The unique identifier of the payment to delete.
  • Version (required) — The version number of the payment resource to ensure the correct version is deleted.

Output shape

a single JSON object representing the deleted payment resource response from the commercetools API

The operation requires both Payment ID and Version to perform deletion and returns the API response for the deleted payment resource. Errors are thrown if deletion fails.

Examples

Example 1: Delete payment with ID 'abc123' version 3

Set 'Payment ID' to 'abc123' and 'Version' to 3 to delete that payment.

Links

Discussion