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:Documentation Index
Fetch the complete documentation index at: https://developers.orchestrasolutions.com/llms.txt
Use this file to discover all available pages before exploring further.
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 theiin query parameter. The endpoint returns the full metadata record for that BIN range.
| Parameter | Type | Required | Description |
|---|---|---|---|
iin | string (query) | Yes | The first 6 to 11 digits of the card number |
Response Fields
| Field | Description |
|---|---|
bin | The matched BIN prefix (6–11 digits) |
cardBrand | Card brand (VISA, MASTERCARD, AMERICAN EXPRESS, JCB, etc.) |
cardType | Card type (CREDIT, DEBIT, DEBIT OR CREDIT, CHARGE CARD) |
category | Card category (CLASSIC, GOLD, PLATINUM, BUSINESS, etc.) |
issuingOrganization | Name of the issuing bank |
countryCode | ISO 3166-2 two-letter country code of the issuer |
brandLogoUrl | URL to the brand logo image |
Example: BIN-Based Payment Routing
Route payments to different PSPs based on the card’s issuer country to optimize approval rates and processing costs.Related
Brand Lookup
Only need the brand? Use the lighter Brand Lookup endpoint.
Multi-Gateway Failover
Combine BIN routing with gateway failover for maximum reliability.