StartPayment Methods

Payment Methods

Retrieve the list of active payment methods available for the authenticated merchant, including supported currency, amount limits, payment time, and commission split.

Get payment methods

GET /api/v1/payment-methods

Returns the list of active payment methods available for the authenticated merchant.

Authentication

Send your API key in the X-Api-Key header.

X-Api-Key: your_api_key_here

Query parameters

ParameterTypeRequiredDescription
currencystringNoFilter by currency code, for example UAH, EUR. Case-insensitive.

Example request

curl -X GET "https://api.ecca-ex.com/api/v1/payment-methods?currency=UAH" \
  -H "X-Api-Key: your_api_key_here"

Example response

{
  "successful": true,
  "data": [
    {
      "name": "Monobank UA",
      "method_code": "monobank",
      "min_sum": "100.00",
      "max_sum": "10000.00",
      "logo_url": "https://ecca-ex.com/payment-methods/monobank.png",
      "payment_time": 15,
      "currency": {
        "code": "UAH",
        "name": "Ukrainian Hryvnia",
        "symbol": "₴"
      },
      "max_commission": "2.50",
      "client_commission": "2.50",
      "merchant_commission": "0.00"
    },
    {
      "name": "PrivatBank UA",
      "method_code": "privatbank",
      "min_sum": "100.00",
      "max_sum": "15000.00",
      "logo_url": "https://ecca-ex.com/payment-methods/privatbank.png",
      "payment_time": 15,
      "currency": {
        "code": "UAH",
        "name": "Ukrainian Hryvnia",
        "symbol": "₴"
      },
      "max_commission": "2.50",
      "client_commission": "1.00",
      "merchant_commission": "1.50"
    }
  ]
}

Response fields

Top-level response

FieldTypeDescription
successfulbooleanIndicates whether the request succeeded
dataarrayList of available payment methods

Payment method fields

FieldTypeDescription
namestringHuman-readable payment method name
method_codestringMachine-readable payment method code
min_sumstringMinimum supported payment amount for this method
max_sumstringMaximum supported payment amount for this method
logo_urlstring | nullPayment method logo URL
payment_timeintegerExpected payment time in minutes
currency.codestringCurrency code in uppercase
currency.namestringHuman-readable currency name
currency.symbolstringCurrency symbol
max_commissionstringTotal commission rate for this method, in percent
client_commissionstringPart of the commission paid by the client, in percent
merchant_commissionstringPart of the commission paid by the merchant, in percent

Commission logic

Commission values are returned as percentage strings with 2 decimal places.

Example:

  • max_commission = "2.50" means the total commission for this method is 2.5%
  • client_commission = "1.00" means the client pays 1.0%
  • merchant_commission = "1.50" means the merchant pays 1.5%

These values show how the total commission is split between the client and the merchant for each payment method.


Notes

  • Only active payment methods are returned.
  • If currency is provided, only payment methods for that currency are returned.
  • Amount limits are returned as strings.
  • Commission values are returned as strings.
  • payment_time is returned in minutes.

Payment method errors

HTTPCodeDescription
404CURRENCY_NOT_FOUNDThe requested currency code was not found
400MERCHANT_CATEGORY_MISSINGMerchant has no category assigned
400MERCHANT_CATEGORY_NOT_FOUNDMerchant category was not found
400MERCHANT_CATEGORY_RATE_INVALIDMerchant category commission configuration is invalid

Example error

{
  "successful": false,
  "request_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
  "error": {
    "code": "CURRENCY_NOT_FOUND",
    "message": "Currency not found",
    "currency": "ABC"
  }
}