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

# Upload NFC cards via CSV file

> Admin uploads CSV file containing Serial No. and MAC Address (supports both 6-octet and 7-octet formats). Valid records are inserted with status = "Unassigned"



## OpenAPI

````yaml /olive-openapi.json post /cards/upload-csv
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/upload-csv:
    post:
      tags:
        - Cards
      summary: Upload NFC cards via CSV file
      description: >-
        Admin uploads CSV file containing Serial No. and MAC Address (supports
        both 6-octet and 7-octet formats). Valid records are inserted with
        status = "Unassigned"
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  description: 'CSV file with columns: serial_number, mac_address'
                  type: string
                  format: binary
                batch_id:
                  description: Batch identifier
                  type: string
              required:
                - file
                - batch_id
        required: true
      responses:
        '200':
          description: Upload successful with error log if any
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Invalid CSV format
          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

````