get https://api.juspay.in/txns/outages
This API will return a detailed list of scheduled outages with banks and payment gateways (wherein the NetBanking or Direct Debit option will not be available). Each outage is represented by an Outage Object. At this point, we only return the Scheduled downtimes that are announced by the Bank. You may use this to suggest alternative payment methods to your customers during the checkout process.
Note:
This API will return the current outages and those in the near future as well. Please check the start time & end time to show only the outages that are currently ongoing
Response Parameters for the List Outages API: (click to view)
Parameter | Type | Description |
---|---|---|
objectiwwwwwwwww | String | "list" |
list: [{...},{...},..] | Array | An array of Outage Objects as shown in the table below. This array provides details of each outage detected by Juspay. |
total | Int | Total number of current and expected outages detected by Juspay |
offset | Int | Offset from start (default is 0) |
count | Int | Count of Outage Objects to be included in response (default is same as 'total') |
Outage Object:
Parameter | Type | Description |
---|---|---|
id | String | Outage ID generated by JusPay. |
object | String | Object type of entity, in this case it’ll be outage |
scope | String | Scope of the outage, one of BANK or GATEWAY. If GATEWAY, then all the payment methods supported by the gateway will be impacted. If BANK, then the issue pertains only to the bank. |
gateway | String | Will be present only if the scope is GATEWAY. All the payment methods pertaining to the GATEWAY will be impacted. You can mitigate this risk by having multiple gateways for each of the payment methods. The probability that two gateways will be down simulateneously is extremely low. |
bank | String | Will be present only if the scope is BANK. |
payment_method_type | String | Will be present only if the scope is BANK. One of NB or CARD. If NB, then NetBanking is impacted. If CARD, then cards issued by the bank will not work. |
start_time | String | Indicates the start time of the outage event. |
end_time | String | Indicates the outage completion time. |
description | String | description |
An example checkout screen with downtime info:
