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

# Retrieve a credit card

Retrieves stored card details by token. Fields with no value are omitted; `expiry_month` and `expiry_year` are integers on this endpoint. A removed token returns `410 Gone`, which is a reliable way to check whether a token is still usable.

```json 200 theme={null}
{
  "card": {
    "token": "c629ac3b-682b-41e4-9a81-9445960843cf",
    "card_name": "John Citizen",
    "masked_number": "411111XXXXXX1111",
    "expiry_month": 12,
    "expiry_year": 28,
    "card_type": "Visa",
    "link": { "href": "/api/v5/token/c629ac3b-682b-41e4-9a81-9445960843cf", "rel": "self" }
  },
  "object_type": "card",
  "from_item": 0,
  "to_item": 0,
  "total_count": 0
}
```

```json 410 theme={null}
{
  "error": { "message": "The token has been removed", "param": "410" },
  "object_type": "error",
  "from_item": 0,
  "to_item": 0,
  "total_count": 0
}
```


## OpenAPI

````yaml GET /api/v5/Token/{cardToken}
openapi: 3.0.1
info:
  title: Paychoice
  version: v5
servers: []
security:
  - basic: []
paths:
  /api/v5/Token/{cardToken}:
    get:
      tags:
        - Token
      parameters:
        - name: cardToken
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
components:
  securitySchemes:
    basic:
      type: http
      description: Basic Authorization header using the Bearer scheme.
      scheme: basic

````

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