Astrada TypeScript SDK
    Preparing search index...

    Interface BinLookup

    BinLookup

    interface BinLookup {
        bin: string;
        cardCategory?: BinLookupCardCategoryEnum;
        cardFundingType?: BinLookupCardFundingTypeEnum;
        fundingType: BinLookupFundingTypeEnum;
        issuerCountry?: string;
        issuerCountryAmbiguous?: boolean;
        issuerCountryCandidates?: string[];
        issuerName?: string;
        issuerRegion?: BinLookupIssuerRegionEnum;
        network: string;
        type?: BinLookupTypeEnum;
        warnings?: BinLookupWarning[];
    }
    Index
    bin: string

    The 6-digit Bank Identification Number (BIN) the answer was found under. It is always the first 6 digits of the bin you sent, even when you sent more; the rest of your input is never echoed back.

    BinLookup

    The card's commercial classification, carried through from the BIN reference dataset. More specific than type: it separates FLEET, PURCHASING and GIFT cards that type reports as COMMERCIAL or CORPORATE, and it is populated for many BINs where type is absent. UNKNOWN means the reference data does not classify the BIN; treat it as "not determined", not as "consumer".

    BinLookup

    How the card is funded, carried through from the BIN reference dataset. Broader than fundingType: it separates CHARGE cards (which fundingType reports as CREDIT) and GIFT cards (which fundingType reports as PREPAID or DEBIT). UNKNOWN means the reference data does not classify the BIN.

    BinLookup

    The card funding type (e.g., prepaid, debit, credit)

    BinLookup

    issuerCountry?: string

    The country of the issuing bank following ISO 3166 alpha-3. May be null when the BIN is known but the reference data does not record its issuing country (an unknown BIN returns 404, not null).

    For a Mastercard card, this is checked against the digits sent and can differ from what the first 6 digits alone would give, because one BIN can be shared by issuers in several countries. Send more digits (up to 11) for a more precise issuer country; never send the full card number.

    BinLookup

    issuerCountryAmbiguous?: boolean

    Present, and always true, only when the digits sent match card ranges in more than one country. issuerCountry is then the 6-digit BIN's value and may not be this card's country; issuerCountryCandidates lists the possible countries and warnings explains what to do. With fewer than 11 digits, sending more can resolve it. Omitted in every other case.

    BinLookup

    issuerCountryCandidates?: string[]

    The possible issuer countries (ISO 3166 alpha-3, sorted, at least two) when the digits sent match card ranges in more than one country. Present only together with issuerCountryAmbiguous: true.

    BinLookup

    issuerName?: string

    The name of the issuing bank. For a Mastercard card, this can be more specific to the digits sent than the 6-digit BIN's issuer name (see issuerCountry).

    BinLookup

    The region of the issuing bank, derived from the issuer country. EU covers Europe and MEA covers the Middle East & Africa. These are separate buckets; there is no combined EMEA value. UNKNOWN means the issuer country is missing or not mapped to a region; treat it as "not determined". It always matches the returned issuerCountry.

    BinLookup

    network: string

    The card network (e.g., VISA, MASTERCARD, AMERICAN_EXPRESS). American Express is AMERICAN_EXPRESS here; other endpoints spell it AMEX.

    BinLookup

    The card type (e.g., COMMERCIAL, CORPORATE, CONSUMER, SMALL_BUSINESS )

    BinLookup

    warnings?: BinLookupWarning[]

    Notes about the answer that a caller may want to act on. Present only when there is something to report, and never empty. Branch on code; message is for people and may change.

    Today the only code is ISSUER_COUNTRY_NOT_CONFIRMED, sent together with issuerCountryAmbiguous: true when the digits sent match card ranges in more than one country. With fewer than 11 digits, sending more digits (up to 11) may confirm the issuer country. With 11 digits, the issuer country could not be confirmed.

    BinLookup