m2pfintech
Implementation Guide

BIN Setup

How to create BINs, BIN ranges, and sub-BIN ranges for card number allocation before product configuration.

A Bank Identification Number (BIN) is the 6-digit prefix assigned by the card network (Visa, Mastercard, RuPay). BIN ranges define the card number ranges available for issuance under each BIN.

BIN and BIN Range must be created before any product. Products are mapped to BIN ranges at creation time and cannot be retroactively linked.


Setup Flow

Create a BIN

Register the BIN number allocated by the card network.

Navigate to Configuration → BIN Management → Create BIN and fill in the BIN details.

POST /v1/bins/
ParameterTypeRequiredDescription
binNumberstringYes6-digit BIN from card network
networkstringYesVISA, MASTERCARD, or RUPAY
cardTypestringYesPREPAID
issuerNamestringYesIssuing bank/institution name
issuerCountrystringYesISO country code (e.g., IN)
statusstringYesACTIVE
binLengthintegerYes6

Create a BIN Range

Define the card number range available for issuance under the BIN.

Example: BIN 650527 → Range 6505270000000001 to 6505270000099999 = 100,000 cards.

Navigate to Configuration → BIN Ranges → Create BIN Range and map it to the BIN.

POST /v1/bin-ranges/
ParameterTypeRequiredDescription
binNumberstringYesThe 6-digit BIN to associate with
rangeStartstringYesStart of card number range (16 digits)
rangeEndstringYesEnd of card number range (16 digits)
totalCardsintegerYesTotal cards in this range
statusstringYesACTIVE
cardVendorstringYesCard vendor / manufacturer name
plasticTypestringYesSTANDARD or PREMIUM

Create Sub-BIN Ranges (Optional)

Segment card numbers for different programs under the same BIN.

POST /v1/add/bin-ranges
ParameterTypeRequiredDescription
parentBinRangeIdstringYesParent BIN range ID
subRangesarrayYesArray of sub-range objects
subRanges[].programNamestringYesName of the card program
subRanges[].rangeStartstringYesStart of sub-range
subRanges[].rangeEndstringYesEnd of sub-range
subRanges[].totalCardsintegerYesCards in this sub-range

Example: Split a 100K range into 50K for employee cards and 50K for gift cards.


BIN Range Lifecycle

Monitor BIN range utilization. When a range is exhausted during issuance, you will receive PP_CORP_035 (Product BIN Range Exceeded) or PP_CORP_151 (BIN Range Completely Exhausted) errors.

On this page