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 travel company operating across regions might route cards issued in Morocco through a local PSP (e.g., Payzone) for better approval rates, while routing all other cards through a global PSP (e.g., Stripe).

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

Route payments to different PSPs based on the card’s issuer country to optimize approval rates and processing costs.

Brand Lookup

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

Multi-Gateway Failover

Combine BIN routing with gateway failover for maximum reliability.