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

# Create child card

> Create a child card linked to parent subscriber with spending limits. Requires parent's PIN for authentication and a separate PIN for the child's card transactions. The child will use their own PIN when making payments for security.



## OpenAPI

````yaml /olive-openapi.json post /cards/child
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/child:
    post:
      tags:
        - Cards
      summary: Create child card
      description: >-
        Create a child card linked to parent subscriber with spending limits.
        Requires parent's PIN for authentication and a separate PIN for the
        child's card transactions. The child will use their own PIN when making
        payments for security.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/handler.CreateChildCardRequest'
        description: Child card details
        required: true
      responses:
        '201':
          description: Child card created
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Invalid request
          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:
  schemas:
    handler.CreateChildCardRequest:
      type: object
      required:
        - card_serial
        - child_holder_name
        - child_pin
        - child_relationship
        - parent_subscriber_id
        - pin
      properties:
        allocated_amount:
          description: Amount in SLE (will be converted to cents internally)
          type: integer
          example: 200000
        card_serial:
          description: 'Supports any alphanumeric: CARD0001, 48290173K, etc.'
          type: string
          example: OLIV0002
        child_holder_name:
          type: string
          example: Jane Doe
        child_phone_number:
          type: string
          example: '+23276123456'
        child_pin:
          type: string
          example: '5678'
        child_relationship:
          type: string
          example: daughter
        daily_limit:
          description: Amount in SLE (will be converted to cents internally)
          type: integer
          example: 25000
        effective_date:
          type: string
          example: '2025-10-20'
        monthly_limit:
          description: Amount in SLE (will be converted to cents internally)
          type: integer
          example: 250000
        parent_subscriber_id:
          type: string
          example: parent-uuid
        pin:
          type: string
          example: '1234'
  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

````