Skip to main content
POST
BIN Lookup

Overview

The BIN Lookup endpoint allows you to retrieve card information by providing the first 8 digits of a card number (BIN). This is useful for identifying card details before processing a payment, enabling you to:
  • Determine card network (visa, mastercard, rupay, amex, etc.)
  • Identify card type (credit or debit)
  • Get bank information
  • Check if the card is domestic or international
This endpoint helps you provide better user experience by pre-validating card information and displaying appropriate payment options.
Production Requirement: In production, this feature needs to be enabled for your account to receive BIN lookup values. Please contact support to enable BIN lookup functionality for your production environment.

Use Cases

  • Pre-validation: Validate card details before submitting payment
  • UI Enhancement: Show card network logo or bank name as user types
  • Payment Flow Optimization: Determine payment method eligibility based on card type
  • Fraud Prevention: Identify potentially suspicious cards before processing

Request

Endpoint

Headers

Request Body

Example Request

Response

Success Response (200 OK)

Response Fields

Error Responses

400 Bad Request - Invalid BIN

401 Unauthorized

500 Internal Server Error

Examples

JavaScript/TypeScript

Python

Notes

  • BIN code must be 8 digits
  • The endpoint returns null values for fields that cannot be determined
  • Card network values (visa, mastercard, etc.)
  • Bank names are returned
  • is_domestic is true for cards issued in India, false for international cards

Authorizations

X-Client-ID
string
header
required

Client Application ID - Your unique application identifier used to authenticate API requests. You can find your Client ID in the Developer Settings section of the merchant dashboard.

X-Client-Secret
string
header
required

Client Secret Key - Your secret key used alongside the Client ID for secure authentication. Keep this confidential and never expose it in client-side code. Available in the Developer Settings section of the merchant dashboard.

X-Merchant-ID
string
header
required

Merchant Identifier - The unique ID for the merchant account. This is required for PSP (Payment Service Provider) merchants who manage multiple merchant accounts. You can find merchant IDs in the Merchant Management section of the dashboard.

X-API-Version
string
header
required

API Version - Specifies which version of the API to use (e.g., '1.X.X', '2.X.X', or '3.X.X'). This header allows you to control which API version your integration uses. Default version information is available in the Developer Settings.

Body

application/json

BIN lookup request

bin
string
required

BIN code (first 6-8 digits of card number)

Pattern: ^[0-9]{6,9}$
Example:

"41111111"

Response

BIN lookup successful

success
boolean
required

Indicates if the request was successful

message
string
required

Response message

data
object
required