commercetools icon

commercetools

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

Actions671

Payment-method → Check if PaymentMethod exists by Key

AI-generated

Summary

Check whether a commercetools Payment-method exists using its unique key by performing a HEAD request to the corresponding API endpoint.

Inputs

  • Payment-method Key (required) — The unique key identifying the Payment-method to check for existence.

Output shape

a single JSON object indicating existence with fields 'exists' (boolean), 'statusCode' (HTTP status), and 'url' (the API endpoint checked).

Returns 'exists': true and statusCode 200 if the Payment-method exists; otherwise 'exists': false and statusCode 404 if not found. Throws an error for other HTTP errors.

Links

Discussion