> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.thepennyinc.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.thepennyinc.com/_mcp/server.

# Get a card product's BIN

GET https://issuing.sandbox.api.thepennyinc.com/products/{card_product_id}/bins/{bin_id}

Get the full details of a BIN configured on this card product.

Required permissions: `card_product:read`.

Reference: https://docs.thepennyinc.com/api-reference/penny-issuing/products-bi-ns/bins/get

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://issuing.sandbox.api.thepennyinc.com` (Sandbox — safe for testing, no real cards or money movement., default)
- `https://issuing.live.api.thepennyinc.com` (Live — real cards, real money movement.)

## Request

### Path parameters

- `card_product_id` (string, required)
- `bin_id` (string, required)

## Response

### 200

The BIN.

- `bin_id` (string, required) — Penny's unique identifier for this BIN.
- `version` (integer, required) — A number that increases each time this BIN's details change. Use it to confirm you are looking at the latest information.
- `version_time` (datetime, required) — The date and time this BIN's details were last changed.
- `number` (string, required) — The BIN digits (typically 6-8 digits) that identify this range of card numbers.
- `country` (string, required) — The country cards under this BIN are issued in, as an ISO 3166-1 alpha-2 code.
- `scheme` (BinSchemeResponse, required) — The card network scheme used for cards issued under this BIN.
- `active` (boolean, required) — Whether this BIN is currently active for card issuance.
- `status` (enum, required) — This BIN's current lifecycle status: 'reserved' (not yet in use), 'active', 'deactivated', or 'deprecated' (should not be used for new issuance).
  - Allowed values: `reserved`, `active`, `deactivated`, `deprecated`

## Errors

### 400 Bad Request Error

The request was malformed: a required field is missing or a value has the wrong type or format.

- `type` (string, required) — The name of the exception that was raised.
- `message` (string, required) — A human-readable description of the error.
- `details` (map from string to any, optional, nullable) — Structured context about the error, if any.
- `trace_id` (string, optional, nullable) — Identifier for correlating this error with server-side logs.
- `errors` (list of map from string to any, optional, nullable) — Sub-errors that contributed to this failure, if any.

### 401 Unauthorized Error

Authentication failed.

- `type` (string, required) — The name of the exception that was raised.
- `message` (string, required) — A human-readable description of the error.
- `details` (map from string to any, optional, nullable) — Structured context about the error, if any.
- `trace_id` (string, optional, nullable) — Identifier for correlating this error with server-side logs.
- `errors` (list of map from string to any, optional, nullable) — Sub-errors that contributed to this failure, if any.

### 403 Forbidden Error

The caller does not have permission to perform this action.

- `type` (string, required) — The name of the exception that was raised.
- `message` (string, required) — A human-readable description of the error.
- `details` (map from string to any, optional, nullable) — Structured context about the error, if any.
- `trace_id` (string, optional, nullable) — Identifier for correlating this error with server-side logs.
- `errors` (list of map from string to any, optional, nullable) — Sub-errors that contributed to this failure, if any.

### 404 Not Found Error

The card product or BIN was not found.

- `type` (string, required) — The name of the exception that was raised.
- `message` (string, required) — A human-readable description of the error.
- `details` (map from string to any, optional, nullable) — Structured context about the error, if any.
- `trace_id` (string, optional, nullable) — Identifier for correlating this error with server-side logs.
- `errors` (list of map from string to any, optional, nullable) — Sub-errors that contributed to this failure, if any.

### 422 Unprocessable Entity Error

The request was well-formed but could not be processed because it breaks a business rule.

- `type` (string, required) — The name of the exception that was raised.
- `message` (string, required) — A human-readable description of the error.
- `details` (map from string to any, optional, nullable) — Structured context about the error, if any.
- `trace_id` (string, optional, nullable) — Identifier for correlating this error with server-side logs.
- `errors` (list of map from string to any, optional, nullable) — Sub-errors that contributed to this failure, if any.

### 429 Too Many Requests Error

Too many requests; retry after the Retry-After header.

- `type` (string, required) — The name of the exception that was raised.
- `message` (string, required) — A human-readable description of the error.
- `details` (map from string to any, optional, nullable) — Structured context about the error, if any.
- `trace_id` (string, optional, nullable) — Identifier for correlating this error with server-side logs.
- `errors` (list of map from string to any, optional, nullable) — Sub-errors that contributed to this failure, if any.

### 500 Internal Server Error

An unexpected error occurred.

- `type` (string, required) — The name of the exception that was raised.
- `message` (string, required) — A human-readable description of the error.
- `details` (map from string to any, optional, nullable) — Structured context about the error, if any.
- `trace_id` (string, optional, nullable) — Identifier for correlating this error with server-side logs.
- `errors` (list of map from string to any, optional, nullable) — Sub-errors that contributed to this failure, if any.

## Types

### BinSchemeResponse

The card network scheme configuration for a BIN: the network brand, funding type, and product type used in authorization and clearing.

- `network` (enum, required) — The card network for this BIN, such as Visa or Mastercard.
  - Allowed values: `visa`, `mastercard`
- `funding_type` (enum, optional, nullable) — The funding type for cards issued under this BIN, if defined.
  - Allowed values: `debit`, `credit`, `prepaid`
- `product_type` (enum, optional, nullable) — The network product category for cards issued under this BIN, if defined.
  - Allowed values: `consumer`, `corporate`, `commercial`

## Examples

**Response**

```json
{
  "bin_id": "bin_01937000-0592-7190-87e7-05921907e7c5",
  "version": 1,
  "version_time": "2024-01-15T10:30:00Z",
  "number": "424242",
  "country": "US",
  "scheme": {
    "network": "visa",
    "funding_type": "debit",
    "product_type": "consumer"
  },
  "active": true,
  "status": "reserved"
}
```

**SDK Code**

```python
import requests

url = "https://issuing.sandbox.api.thepennyinc.com/products/card_product_id/bins/bin_id"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://issuing.sandbox.api.thepennyinc.com/products/card_product_id/bins/bin_id';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://issuing.sandbox.api.thepennyinc.com/products/card_product_id/bins/bin_id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://issuing.sandbox.api.thepennyinc.com/products/card_product_id/bins/bin_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://issuing.sandbox.api.thepennyinc.com/products/card_product_id/bins/bin_id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://issuing.sandbox.api.thepennyinc.com/products/card_product_id/bins/bin_id', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://issuing.sandbox.api.thepennyinc.com/products/card_product_id/bins/bin_id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://issuing.sandbox.api.thepennyinc.com/products/card_product_id/bins/bin_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```