← Back to Overview

Detect Bin

Check if a card BIN is a high-cost commercial card

POST/api/steer/detectOptional Auth
publicproductoptional-auth

Example Request

cURL

curl -X POST https://margin.so/api/steer/detect \
  -H "Content-Type: application/json" \
  -H "X-API-Key: sk_live_your_api_key_here" \
  -d '{}'

JavaScript

const response = await fetch('https://margin.so/api/steer/detect', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-API-Key': 'sk_live_your_api_key_here'
  },
  body: JSON.stringify({})
});

const data = await response.json();
console.log(data);

Python

import requests

response = requests.post(
    'https://margin.so/api/steer/detect',
    headers={
        'Content-Type': 'application/json',
        'X-API-Key': 'sk_live_your_api_key_here'
    },
    json={}
)

data = response.json()
print(data)

Example Response

{
  "success": true,
  "data": {
    "bin": "471234",
    "is_commercial": true,
    "brand": "VISA",
    "type": "CREDIT",
    "category": "CORPORATE",
    "issuer": "Example Bank",
    "country": "US",
    "estimated_interchange_bps": 280
  }
}

Request Body

FieldTypeRequiredDescription