post https://test.payu.in/merchant/postservice.php
API Command: getIssuingBankStatus
The Get Issuing Bank Status API (getIssuingBankStatus) is used to help you handle the credit card or debit card issuing bank downtime.
Environment
Test Environment | https://test.payu.in/merchant/postservice?form=2 |
Production Environment | https://info.payu.in/merchant/postservice?form=2 |
Sample request
curl -X POST "https://test.payu.in/merchant/postservice?form=2
-H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d
"key=J****g&command=getIssuingBankStatus&var1=512345&hash=190908741314524c922d9587298eb64a076d058c085c66229f5acfeac4fb8a11dcd41f3f566cdb2e14a12f486a598a4e56943a2390c258384add9aeed1885e9d"
Sample response
Success scenario
{
"issuing_bank": "HDFC",
"up_status": "1"
}
- up_status parameter with the value as 0 signifies that the particular Bank option is down at the moment.
- up_status parameter with the value as 1 signifies that the particular Bank Banking option is up at the moment.
Failure scenario
If issuing bank data is not available for the BIN:
{
"msg":"No information available",
"status":0
}
Response parameters
The response parameters for a bank code passed in var1, it returns a response for the specified bank alone with the parameters as explained in the following table. If the default value is passed in var1, it returns a array of all the banks in a JSON array format and each JSON has the list of fields similar to the parameter list:
Parameter/JSON Field | Description | Example |
---|---|---|
ibibo_code | This parameter contains the bank code for which the Net Banking status is displayed. | AXIB |
title | This parameter contains the bank name and service. | AXIS Bank NetBanking |
up_status | This parameter contains the status of the NetBanking service and can be any of the following: - 0 - signifies that the particular Bank option is down at the moment - 1 - signifies that the particular Banking option is up at the moment | 1 |
mode | This parameter contains the mode of payment for which the status is displayed. | NB |
Request parameters
Reference information
Parameter | Reference |
---|---|
key | For more information on how to generate the Key and Salt, refer to any of the following: - Production: Generate Merchant Key and Salt - Test: Generate Test Merchant Key and Salt |
hash | Hash logic for this API is:sha512(key|command|var1|salt)
sha512 |
var1 | For JSON fields description, refer to Additional Info for General APIs |
Use the following sample values while trying out the API:
Example values:
var1
(first 6 digit of the card): First six digits of any card (ex- 512345)