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

# Get Card Details

This endpoint retrieves the details of a previously tokenized card. You can use this endpoint to confirm that a card has been successfully tokenized and to access the tokenized card details, such as the card brand, last four digits, and expiration date.


## OpenAPI

````yaml openapi/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: Get Card Details
      operationId: get-card
      parameters:
        - name: Authorization
          in: header
          description: >-
            Bearer access token for authentication. This token is obtained from
            the [Get Access Token](/reference/get-token) or [Refresh Access
            Token](/reference/refresh-token) endpoints.
          required: true
          schema:
            type: string
        - name: token
          in: query
          description: Card token.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  card:
                    type: object
                    description: Card information.
                    properties:
                      token:
                        type: string
                        description: Token that contains the card information.
                      bin:
                        type: string
                        description: Bank identification number.
                      brand:
                        type: string
                        description: Card payment network.
                      Country:
                        type: string
                        enum:
                          - AR
                          - BO
                          - BR
                          - CL
                          - CO
                          - CR
                          - DO
                          - EC
                          - SV
                          - GT
                          - HN
                          - MX
                          - PA
                          - PY
                          - PE
                          - UY
                        title: Country
                        description: >-
                          [Country](/reference/country-codes). ISO 3166-1
                          alpha-2.
                      name:
                        type: string
                        description: Crdholder's name.
                      last4:
                        type: string
                        description: Last four card digits.
                      expirationYear:
                        type: integer
                        description: Expiration year in `yyyy` format.
                      expirationMonth:
                        type: integer
                        description: Expiration month in `mm` format.
                      Installments:
                        type: integer
                        description: Installments.
                    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: List of errors that occurred during the transaction.
                    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: Bad Request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    description: List of errors that occurred during the transaction.
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                          description: Error code.
                        detail:
                          type: string
                          description: Error details.
                        description:
                          type: string
                          description: Error description.
                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: Unauthorized.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Additional information of the response.
                  code:
                    type: string
                    description: Status code.
                  messages:
                    type: array
                    description: Message list.
                    items:
                      type: object
                      properties:
                        token_class:
                          type: string
                          description: Token class.
                        token_type:
                          type: string
                          description: Token type.
                        message:
                          type: string
                          description: Message with additional information.
                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.