Skip to main content
The Metadata Lookup endpoint returns the full metadata for a card based on its BIN/IIN. This includes the card brand, type (credit/debit), category, issuing organization, country of issue, and a brand logo URL. Endpoint: GET /Tools/iin

When to Use This

Use Metadata Lookup when you need detailed card information to make decisions before processing a payment. The most common use case is BIN-based routing, directing transactions to different payment gateways based on the card’s issuer country, brand, or type. For example, a business operating across regions might send cards issued in Morocco to a local PSP it has chosen, and all other cards to a global PSP.

How It Works

Pass the first 6 to 11 digits of the card number as the iin query parameter. The endpoint returns the full metadata record for that BIN range.

Response Fields

Example: BIN-Based Payment Routing

Choose which PSP handles a payment based on the card’s issuer country, using your own rules.

Brand Lookup

Only need the brand? Use the lighter Brand Lookup endpoint.

Multi-Gateway Failover

Combine BIN routing with gateway failover for maximum reliability.