get https://api.juspay.in/merchants//paymentmethods
Gives a list of all the payment methods available for your account.
Outage Information
Outage information is received realtime from the recent transactions at merchant account level and Juspay global level
Outage has two levels FLUCTUATE and DOWN. These are configurable at the merchant account level
A list (array) of Payment Methods is returned, along with optional lists (arrays) for payment methods that support a given type, as selected by the Query Parameters. (click to view)
If a Query option is selected for listing payment methods with supported Gateway Reference IDs or Direct Wallet Debit support, the result is shown in the payment_methods array, as marked by the extra parameters below.
If a Query option is selected for listing payment methods that support Emandates, Outages, or Third-Party Validation (TPV), the result is listed in a separate array, as shown below.
If a Query option is selected for listing payment methods that support Emandates, Outages, or Third-Party Validation (TPV), the result is listed in a separate array, as shown below.
{
payment_methods: [...],
Optionally includes extra parameters for payment methods with
Supported Gateway Reference IDs and payment methods that
support Direct Wallet Debit (see table below for parameters).
emandate_payment_methods: [...],
outages: [...],
tpv_payment_methods: [...]
}
Each element in a payment_methods array is a Payment Method Object. Same object is used in arrays listing payment methods that support a given type.
Field | Type | Description |
---|---|---|
payment_method_type | String | Must be either CARD, NB, WALLET. Or UPI |
payment_method | String | The actual payment method that was selected by the user. |
description | String | Bank associated with payment method (or card type) |
The following parameter is returned in the payment_methods array when checking for Direct Wallet Debit support:
wallet_direct_debit_supporti | Boolean | Returns 'true' or 'false' only when "payment_method_type" = "WALLET" |
The following parameter is returned in the payment_methods array when checking for gateway reference IDs supported for each payment method:
supported_reference_ids: [....] | Array of Strings | Only used for payment methods with supported gateway reference IDs |
The following parameters are only returned when when checking for payment methods with outages:
statuswwwwwwwwwwwwww | String | Must be "DOWN" or "FLUCTUATE" |
issuer_name | String | Must be "UPI Payment" |
txn_type | String | Must be "UPI_COLLECT" or "UPI_PAY" |
juspay_bank_code | String | By using juspay_bank_code as a look-up, a merchant can determine whether a payment method has outage or not. |
sub_details: [{...},{...},..] | Array of Objects | Status indications for UPI handles |
Parameters for each object in the sub_details
array:
(click to open)
Field | Type | Description |
---|---|---|
statuswwwwwwwww | String | Must be "DOWN" or "FLUCTUATE" |
upi_handle | String | UPI handle for which status is sent |
⭣
The request consists of a Path Parameter (merchant_id), and optional Query Parameters, as listed below: