> ## 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.

# Kartendetails abrufen

Dieser Endpunkt ruft die Details einer zuvor tokenisierten Karte ab. Mit diesem Endpunkt können Sie bestätigen, dass eine Karte erfolgreich tokenisiert wurde, und auf die Details der tokenisierten Karte zugreifen, etwa die Kartenmarke, die letzten vier Ziffern und das Ablaufdatum.


## OpenAPI

````yaml openapi/de/localpayment.json GET /api/card
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/card:
    get:
      summary: Kartendetails abrufen
      operationId: get-card
      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: token
          in: query
          description: Karten-Token.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  card:
                    type: object
                    description: Karteninformationen.
                    properties:
                      token:
                        type: string
                        description: Token mit den Karteninformationen.
                      bin:
                        type: string
                        description: Bankidentifikationsnummer.
                      brand:
                        type: string
                        description: Zahlungsnetzwerk der Karte.
                      Country:
                        type: string
                        enum:
                          - AR
                          - BO
                          - BR
                          - CL
                          - CO
                          - CR
                          - DO
                          - EC
                          - SV
                          - GT
                          - HN
                          - MX
                          - PA
                          - PY
                          - PE
                          - UY
                        title: Land
                        description: >-
                          [Land](/de/reference/country-codes). ISO 3166-1
                          alpha-2.
                      name:
                        type: string
                        description: Name des Karteninhabers.
                      last4:
                        type: string
                        description: Letzte vier Ziffern der Karte.
                      expirationYear:
                        type: integer
                        description: Ablaufjahr im Format `yyyy`.
                      expirationMonth:
                        type: integer
                        description: Ablaufmonat im Format `mm`.
                      Installments:
                        type: integer
                        description: Raten.
                    x-examples:
                      Example 1:
                        card:
                          token: Txf+Hf/YlDNiJOkIifR7nXDnvH0IsuZN+dwyzen5Ks0=
                          bin: '424242'
                          brand: VISA
                          country: GB
                          name: MANUEL CEDRO
                          last4: '4242'
                          expirationYear: 2025
                          expirationMonth: 11
                          installments: 0
                  errors:
                    type: array
                    description: Liste der bei der Transaktion aufgetretenen Fehler.
                    items:
                      type: object
                x-examples:
                  Example 1:
                    card:
                      token: Quwoyb%2BSaW2t6vNvnPK0%2Ff3hu4UZQqSwY4yXKdkON9c%3D
                      bin: '400000'
                      brand: VISA
                      country: US
                      name: John Doe
                      last4: '0002'
                      expirationYear: 2028
                      expirationMonth: 11
                    errors: []
              examples:
                200 - Get card.:
                  value:
                    card:
                      token: Quwoyb%2BcaW1t6vNvxPK0%2Ff3hu4UZQqSwY4yXKdkON9c%3D
                      bin: '400000'
                      brand: VISA
                      country: US
                      name: John Doe
                      last4: '0002'
                      expirationYear: 2028
                      expirationMonth: 11
                    errors: []
        '400':
          description: Ungültige Anfrage.
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    description: Liste der bei der Transaktion aufgetretenen Fehler.
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                          description: Fehlercode.
                        detail:
                          type: string
                          description: Fehlerdetails.
                        description:
                          type: string
                          description: Fehlerbeschreibung.
                x-examples:
                  Example 1:
                    errors:
                      - code: '801'
                        description: REJECTED
                        detail: Params error Invalid token
              examples:
                801 - Params error Invalid token.:
                  value:
                    errors:
                      - code: '801'
                        description: REJECTED
                        detail: Params error Invalid token
        '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.