Get Payment Method

This API retrieves payment methods based on various query parameters.

Endpoint Information

  • Request Header: X-BH-TOKEN: ******

  • Request Method: GET

  • Request Path: /v2/payments

  • Authorization Required: Yes

Query Parameters

  • country: (string) The country for which to retrieve payment methods.

  • status: (int) The status of the payment method [0: all (default), 1: valid, 2: authenticating, 3: authentication failed].

  • fiat: (string) The fiat currency.

  • merchantId: (int) The ID of the merchant id.

  • currentPage: (int) The current page number.

  • pageSize: (int) The number of results per page.

Authorization

This request requires authorization.

Response Structure

The response will include the following fields:

Example Response

Notes

  • The record array contains details about each payment method that matches the query parameters.

  • Ensure that valid authorization tokens are included in the request headers for successful execution.