PEAK Get Payment Method icon

PEAK Get Payment Method

Send parameter to get payment method via PEAK API

PEAK Get Payment Method

AI-generated

Summary

Retrieves a payment method configuration from the PEAK API based on a specified ID or code, using credentials and a HMAC-SHA1 signature for authentication.

Inputs

  • serverEnvironment (required) — The server environment to use: 'production' or 'uat' (default).
  • paymentMethodId — The ID of the payment method to retrieve.
  • paymentMethodCode — The code of the payment method to retrieve.
  • clientTokenOverride — Optional override for the Client Token, useful when the token refreshes every 24 hours.

Output shape

A single item for each input item containing the API response data, the HTTP status code, and request headers.

If the input list contains multiple items, the operation processes each item and returns a list of corresponding results. Errors can be handled to fail the workflow or continue on failure.

Examples

Example 1: Get a production payment method by ID

Server Environment: production, PaymentMethod ID: 12345

Example 2: Get a UAT payment method by code

Server Environment: uat, PaymentMethod Code: VISA-001

Links

Discussion