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

# Get Card

> Retrieve card details by serial number

## Request

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

### Path Parameters

<ParamField path="serial" type="string" required>
  Card serial number (e.g., `OLIV0001`)
</ParamField>

***

## Response

<ResponseField name="card" type="object">
  <Expandable title="Card Object">
    <ResponseField name="serial" type="string">
      Card serial number
    </ResponseField>

    <ResponseField name="mac_address" type="string">
      Card MAC address
    </ResponseField>

    <ResponseField name="type" type="string">
      Card type: `PARENT` or `CHILD`
    </ResponseField>

    <ResponseField name="status" type="string">
      Card status: `ACTIVE`, `BLOCKED`, `UNASSIGNED`
    </ResponseField>

    <ResponseField name="subscriber_id" type="string">
      Linked subscriber UUID (if assigned)
    </ResponseField>

    <ResponseField name="subscriber_name" type="string">
      Linked subscriber name
    </ResponseField>

    <ResponseField name="daily_limit" type="integer">
      Daily limit in cents (child cards only)
    </ResponseField>

    <ResponseField name="parent_serial" type="string">
      Parent card serial (child cards only)
    </ResponseField>
  </Expandable>
</ResponseField>

***

## Examples

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

<ResponseExample>
  ```json 200 Parent Card theme={null}
  {
    "card": {
      "serial": "OLIV0001",
      "mac_address": "AA:BB:CC:DD:EE:01",
      "type": "PARENT",
      "status": "ACTIVE",
      "subscriber_id": "sub_abc123",
      "subscriber_name": "John Doe",
      "linked_at": "2025-01-15T10:30:00Z",
      "created_at": "2025-01-01T00:00:00Z"
    }
  }
  ```

  ```json 200 Child Card theme={null}
  {
    "card": {
      "serial": "OLIV0002",
      "mac_address": "AA:BB:CC:DD:EE:02",
      "type": "CHILD",
      "status": "ACTIVE",
      "subscriber_id": "sub_abc123",
      "parent_serial": "OLIV0001",
      "daily_limit": 5000000,
      "child_name": "Jane Doe",
      "linked_at": "2025-01-16T14:00:00Z"
    }
  }
  ```

  ```json 404 Not Found theme={null}
  {
    "error": "Card not found",
    "code": "CARD_NOT_FOUND"
  }
  ```
</ResponseExample>

***

## Errors

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


## OpenAPI

````yaml olive-openapi.json GET /cards/{serial}
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:
  /cards/{serial}:
    get:
      tags:
        - Cards
      summary: Get card details
      description: Get NFC card details by serial number
      parameters:
        - description: Card Serial Number
          name: serial
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Card details
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '404':
          description: Card not found
          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

````