> ## Documentation Index
> Fetch the complete documentation index at: https://docs.localpayment.com/llms.txt
> Use this file to discover all available pages before exploring further.

# BIN-Informationen abrufen

Validieren Sie eine Bankidentifikationsnummer (BIN), um die Gültigkeit einer Karte zu prüfen und wichtige Details wie Aussteller, Marke, Typ und Land abzurufen. Nutzen Sie diese Prüfung, um Zahlungsfehler aufgrund ungültiger Kartendaten zu vermeiden.

> **Bitte beachten**
>
> Der `countryCode `in der Antwort liegt im Format ISO-3166-1 Alpha-2 vor. Konvertieren Sie diesen Wert in den Standard ISO-3166-1 Alpha-3, bevor Sie ihn an andere Endpunkte unseres Systems senden.


## OpenAPI

````yaml openapi/de/localpayment.json GET /api/resources/bin-validation
openapi: 3.1.0
info:
  version: '1.0'
  title: Localpayment
  contact:
    name: Support
    url: mailto:support@localpayment.com
servers:
  - url: https://api.stage.localpayment.com
    description: Stage
security:
  - token: []
paths:
  /api/resources/bin-validation:
    get:
      summary: BIN-Informationen abrufen
      operationId: get-bin-info
      parameters:
        - name: Authorization
          in: header
          description: >-
            Bearer-Zugriffstoken zur Authentifizierung. Dieses Token erhalten
            Sie über die Endpunkte [Zugriffstoken
            abrufen](/de/reference/get-token) oder [Zugriffstoken
            aktualisieren](/de/reference/refresh-token).
          required: true
          schema:
            type: string
        - name: bin
          in: query
          description: Bankidentifikationsnummer.
          required: true
          schema:
            type: string
            examples:
              - '400000'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  bin:
                    type: string
                    description: Bankidentifikationsnummer.
                  bank:
                    type: string
                    description: Ausstellende Bank der Karte.
                  card:
                    type: string
                    description: Zahlungsnetzwerk der Karte.
                  type:
                    type: string
                    enum:
                      - CREDIT
                      - DEBIT
                    description: Kartentyp.
                  level:
                    type: string
                    description: Kartenkategorie.
                  country:
                    type: string
                    description: Ländername.
                  CountryCode:
                    type: string
                    title: CountryCode
                    description: Ländercode. ISO 3166-1 alpha-2.
                  website:
                    type: string
                    description: Website des Ausstellers.
                  phone:
                    type: string
                    description: Telefonnummer des Ausstellers.
                  valid:
                    type: boolean
                    description: Gibt an, ob die angegebene BIN gültig ist.
                required:
                  - bin
                  - bank
                  - card
                  - type
                  - level
                  - country
                  - CountryCode
                  - website
                  - phone
                  - valid
                x-examples:
                  Example 1:
                    bin: '424242'
                    bank: ''
                    card: VISA
                    type: CREDIT
                    level: ''
                    country: United Kingdom of Great Britain and Northern Ireland
                    countryCode: GB
                    website: ''
                    phone: ''
                    valid: true
              examples:
                200 - BIN info.:
                  value:
                    bin: '40000000'
                    bank: INTL HDQTRS-CENTER OWNED
                    card: VISA
                    type: CREDIT
                    level: TRADITIONAL
                    country: United States of America
                    countryCode: US
                    website: ''
                    phone: ''
                    valid: true
        '400':
          description: Ungültige Anfrage.
          content:
            application/json:
              schema:
                type: object
                properties:
                  bin:
                    type: string
                    description: Bankidentifikationsnummer.
                  valid:
                    type: boolean
                    description: Gibt an, ob die angegebene BIN gültig ist.
                  error:
                    type: string
                    description: Fehlermeldung.
                  message:
                    type: string
                    description: Zusätzliche Fehlerinformationen.
                required:
                  - bin
                  - valid
                  - error
                  - message
                x-examples:
                  Example 1:
                    bin: '40000'
                    valid: false
                    error: bincheck.io error
                    message: The BIN number is less than 6 digits.
              examples:
                400 - BIN length error.:
                  value:
                    bin: '40000'
                    valid: false
                    error: bincheck.io error
                    message: The BIN number is less than 6 digits.
                1011 - Invalid BIN:
                  value:
                    bin: 40000-3
                    valid: false
                    error: '1011'
                    message: Invalid BIN
        '401':
          description: Nicht autorisiert.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Zusätzliche Informationen zur Antwort.
                  code:
                    type: string
                    description: Statuscode.
                  messages:
                    type: array
                    description: Liste der Meldungen.
                    items:
                      type: object
                      properties:
                        token_class:
                          type: string
                          description: Token-Klasse.
                        token_type:
                          type: string
                          description: Token-Typ.
                        message:
                          type: string
                          description: Meldung mit zusätzlichen Informationen.
                x-examples:
                  Example 1:
                    detail: Given token not valid for any token type
                    code: token_not_valid
                    messages:
                      - token_class: AccessToken
                        token_type: access
                        message: Token is invalid or expired
              examples:
                401 - Token is invalid or expired:
                  value:
                    detail: Given token not valid for any token type
                    code: token_not_valid
                    messages:
                      - token_class: AccessToken
                        token_type: access
                        message: Token is invalid or expired
      security:
        - token: []
      servers:
        - url: https://api.stage.localpayment.com
          description: Stage
components:
  securitySchemes:
    token:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.