commercetools icon

commercetools

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

Actions671

Payment-method → Get PaymentMethod by Key

AI-generated

Summary

Retrieve a specific Payment-method by its unique key from commercetools.

Inputs

  • Payment-method Key (required) — The unique key identifying the Payment-method to retrieve.
  • Filters — Optional filters to apply to the request, including the 'expand' parameter for expanding related resources.

Output shape

a single Payment-method object as returned by the commercetools API

Returns the Payment-method details in JSON. The output may include expanded related resources if the 'expand' filter is used.

Examples

Example 1: Fetch Payment-method by key with no expansions

Set the Payment-method Key to the desired key, leave Filters empty.

Example 2: Fetch Payment-method by key with expansions

Set the Payment-method Key and specify 'expand' value in Filters to include related resources.

Links

Discussion