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

# Subscriber Cards

> List all cards linked to a subscriber

## Request

<ParamField header="Authorization" type="string" required>
  `Bearer olive_live_xxx` or `Bearer eyJ...` (JWT)
</ParamField>

### Path Parameters

<ParamField path="id" type="string" required>
  Subscriber UUID (e.g., `sub_abc123`)
</ParamField>

***

## Response

<ResponseField name="cards" type="array">
  Array of card objects linked to subscriber
</ResponseField>

<ResponseField name="count" type="integer">
  Total number of cards
</ResponseField>

***

## Examples

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://demo.api.vultlocal.com/api/v1/subscribers/sub_abc123/cards" \
    -H "Authorization: Bearer olive_live_xxx"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "cards": [
      {
        "serial": "OLIV0001",
        "type": "PARENT",
        "status": "ACTIVE",
        "mac_address": "AA:BB:CC:DD:EE:01",
        "linked_at": "2025-01-15T10:30:00Z"
      },
      {
        "serial": "OLIV0002",
        "type": "CHILD",
        "status": "ACTIVE",
        "mac_address": "AA:BB:CC:DD:EE:02",
        "daily_limit": 50000,
        "parent_serial": "OLIV0001",
        "linked_at": "2025-01-16T14:00:00Z"
      }
    ],
    "count": 2
  }
  ```

  ```json 200 No Cards theme={null}
  {
    "cards": [],
    "count": 0
  }
  ```
</ResponseExample>

***

## Card Types

<CardGroup cols={2}>
  <Card title="Parent Card" icon="credit-card">
    * Primary card linked to subscriber
    * Full access to wallet balance
    * Can manage child cards
  </Card>

  <Card title="Child Card" icon="id-card">
    * Linked to parent card
    * Daily spending limit
    * For dependents/employees
  </Card>
</CardGroup>

***

## Card Status

| Status    | Description                         |
| --------- | ----------------------------------- |
| `ACTIVE`  | Card can be used for transactions   |
| `BLOCKED` | Card temporarily blocked            |
| `LOST`    | Reported lost, permanently disabled |
| `EXPIRED` | Card past expiry date               |

***

## Errors

| Status | Code             | Description                |
| ------ | ---------------- | -------------------------- |
| 401    | `UNAUTHORIZED`   | Invalid or missing API key |
| 404    | `NOT_FOUND`      | Subscriber not found       |
| 500    | `INTERNAL_ERROR` | Server error               |

***

## Related

<CardGroup cols={2}>
  <Card title="Link Card" icon="link" href="/api-reference/cards/link">
    Link a new card to subscriber
  </Card>

  <Card title="Create Child Card" icon="plus" href="/api-reference/cards/child">
    Create a child card
  </Card>
</CardGroup>


## OpenAPI

````yaml olive-openapi.json GET /subscribers/{id}/cards
openapi: 3.0.0
info:
  description: >-
    API Gateway for OLIVE NFC Card Payment System - Comprehensive payment, card
    management, agent operations, and admin authentication. All /api/v1 routes
    require authentication using either API Key or JWT token.
  title: OLIVE NFC Card Payment API
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    email: support@olive.sl
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.0.0
servers:
  - url: https://olive-gateway-a6ba.onrender.com/api/v1
security: []
paths:
  /subscribers/{id}/cards:
    get:
      tags:
        - Cards
      summary: List subscriber cards
      description: List all NFC cards linked to a subscriber
      parameters:
        - description: Subscriber ID
          name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: List of cards
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      description: >-
        API Key for third-party integrations (WhatsApp, Smart PAY, VULT).
        Format: 'Bearer olive_live_xxxxxxxxxxxxx'
      type: apiKey
      name: Authorization
      in: header
    BearerAuth:
      description: >-
        JWT token from admin login for administrative operations. Format:
        'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'
      type: apiKey
      name: Authorization
      in: header

````