The Check is Domestic Card API allows merchants to verify whether a given card Bank Identification Number (BIN) belongs to a domestic Indian financial institution or an international issuer. This information enables merchants to route payments effectively and adjust processing fees or authentication paths.
HTTP Method: POST
Environment
Environment
URL
Test Environment
<redacted URL>
Production Environment
<redacted URL>
Request Headers
Parameter
Description
date
The current date and time. For example, format of the date is Wed, 28 Jun 2023 11:25:19 GMT.
authorization
The actual HMAC signature generated using the specified algorithm (sha512) and includes the hashed data. For more information, refer to authorization fields description.
authorization fields description
Field
Description
username
Represents the username or identifier for the client or merchant, for example smsplus.
algorithm
Use SHA512 algorithm for hashing and send this as header value.
headers
Specifies which headers have been used in generating the hash, for example date.
signature
The HMAC signature generated using the specified algorithm. For more information, refer to hashing algorithm.
hashing algorithm
You must hash the request parameters using the following hash logic:
Where <Body data> contains the request body posted with the request.
Sample header code
var merchant_key = '<YOUR_TEST_KEY>';
var merchant_secret = 'YOUR_TEST_SALT';
// date
var date = new Date();
date = date.toUTCString();
// authorization
var authorization = getAuthHeader(date);
function getAuthHeader(date) {
var AUTH_TYPE = 'sha512';
var data = isEmpty(request['data']) ? "" : request['data'];
var hash_string = data + '|' + date + '|' + merchant_secret;
var hash = CryptoJS.SHA512(hash_string).toString(CryptoJS.enc.Hex);
return `hmac username="${merchant_key}", algorithm="${AUTH_TYPE}", headers="date", signature="${hash}"`;
}
Header
Type
Description
Content-Type
String
Must be application/json.
Date
String
Current GMT timestamp (e.g. Tue, 17 Jun 2025 06:48:55 GMT).
Authorization
String
Standard PayU HMAC authorization header.
Query Parameters
Parameter
Type
Required
Description
Example
is_domestic
Boolean
Mandatory
Flag instructing the engine to evaluate domestic card status. Set to true.
true
Request Body Parameters
Parameter
Description
Example
bin
String The first 6 or 8 digits of the card number (BIN).