commercetools icon

commercetools

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

Actions671

Payment → Get Payment by ID

AI-generated

Summary

Retrieve a specific payment object from commercetools using its unique Payment ID, optionally applying query filters such as 'expand' to include additional data in the response.

Inputs

  • Payment ID (required) — The unique identifier of the payment to retrieve.
  • Filters — Optional query parameters to modify the returned data. Currently supports 'expand' to include expanded references in the response.

Output shape

A single payment object represented as a JSON record.

The operation returns a JSON object of the payment matching the specified Payment ID. If query parameters are provided, the response may include expanded sub-resources according to commercetools API conventions. Errors are thrown if the Payment ID is invalid or the request fails.

Links

Discussion