The first 6 digits of the card number are called the BIN number. By using the BIN service, we can obtain information about the card.
The endpoint and http method information to retrieve bin number are stated below.
The parameters expected to be sent in requests to bin inquiry are listed under the table and subheadings below.
First 6 or 8 digits of the card number that is used to return installment information.
First 8 digits of the card number
See: Card Types
Represents card programme's of the banks such as
Name of the card's bank
Code of the card's bank
Information on whether card is commercial.
You can review the sample codes in the open source Craftgate API clients.