Getting Started With Parrot

BIN data and insights.

Overview

Parrot by Pagos is an API-driven microservice that provides detailed bank and market data for the payment cards your customers transact with. Using a simple HTTPS request, you can submit a 6-10 digit bank identifier number (BIN)—also known as an Issuer Identification number (IIN)—for a customer's card to the Parrot application programming interface (API). Parrot will then return information about the card type and brand, the bank that issued it, and details of the market it was issued in, such as currency, country, and time zone. At an additional cost, you can request enhanced data for a BIN.

BIN data can help you better understand both your customers and their preferred payment cards. With this added context, you can design and implement a payments strategy that benefits your bottom line and improves the checkout experience for your customers. For examples of how to get started, check out our integration guides.

📘

Note

Parrot doesn't have a test environment. Instead, we offer a free trial for Parrot, which allows you to test out the service and the data it provides.

Sign Up

Create a free trial account to get started with Parrot. With your free account, you can query our service up to 500 times over 30 days.

To learn more about how BINs work, check out our BIN / IIN Data guide.

Generate an API Key

After you create an account, open the Parrot Service Panel to generate an API Key:

  1. Click API Keys in the navigation bar.
  2. Click Create API key to add a new key to your account.

You'll provide this API key in the x-api-key header when you make your first BIN request to Parrot. Parrot uses this value alone to authenticate your request to our servers; you don't need to provide a password. For more information on how the Pagos platform uses API keys, see our API Keys guide.

Look Up a BIN

You're now ready to query for a BIN! We recommend using cURL on the command line to submit API requests to Parrot, but you can also use API query tools like Postman. Here’s a cURL example for details on BIN 55630400

curl -H "x-api-key:[your API key here]" "https://parrot.prod.pagosapi.com/bins?bin=55630400"

This will return the details for the BIN:

{
    "card": {
        "number": {
            "length": 16
        },
        "bin_min": "5563040000000000000",
        "bin_max": "5563049999999999999",
        "card_brand": "MASTERCARD",
        "type": "Credit",
        "prepaid": false,
        "product": {
            "product_id": "MCF",
            "product_name": "MasterCard Corporate Fleet Card"
        },
        "bank": {
            "name": "CITIBANK N.A."
        },
        "country": {
            "alpha2": "US",
            "numeric": "840",
            "name": "UNITED STATES OF AMERICA"
        },
        "correlation_id": "eyJGaWxlSWQiOjI3NiwiVmVyc2lvbiI6NX0=”
    }
}

Card Product ID and Name

When available, we will provide the details around the card product ID and the card product name – this will denote the type of card typically present on the BIN. More details are available in the BIN / IIN Product Code Guide.

Brands Covered

At this time, Parrot covers BIN data for the following card brands.

  • PayPal
  • Discover
  • Prop
  • JCB
  • Mastercard
  • Visa
  • Amex
  • Elo
  • Dankort
  • Diners Club
  • Unionpay
  • EFTPOS Australia
  • RuPay
  • Accel
  • NYCE
  • STAR
  • PULSE
  • Korean Local
  • MIR
  • Culiance
  • Bancontact
  • Carte Bancaire
  • Hipercard
  • ATM Card
  • UATP
  • Cirrus
  • Private Label
  • Maestro

Enhanced Data

In both Parrot and Parrot Batch, you can request enhanced data. This provides you with up to 35 additional fields beyond the standard data fields of Parrot. It includes additional card brand information, estimated interchange costs, SCA regulation requirements, and more. See the Parrot Data Dictionary for a detailed list of the enhanced data fields available and an example of how BIN data appears in a query response.

Parrot FAQ

What does a Null field response mean?

The data provided in an individual field response depends on what data appears in the files Parrot receives from the card brands. If a field response is null, this means our card brand files don't include any data for that field.

Why are Parrot's responses different from my current BIN list provider's responses?

Pagos receives BIN data directly from the card brands. As such, our response data is accurate and up-to-date according to the latest card brand records. Because other BIN providers may receive their data from third party sources outside of the card brands, so we can't speak to the accuracy of their responses.

Why is BIN_length not always available in a BIN response?

bin_length is an attribute only shared by certain card brands. If a card brand's file doesn't contain this field, Parrot will present a null response. That being said, bin_length is not a necessary field for determining the details of a particular BIN. Instead, we recommend focusing on the values returned for the bin_min and bin_max attributes. BIN min/max values identify the BIN range a customer's card sits within, and all cards within a set range share flags indicating important details about them (e.g. card currency, card type, etc). As a best practice, always submit up to 10 digits for a PAN when querying Parrot to narrow down your results to a specific BIN range.