Skip to main content
POST
Admin endpoint for bulk importing NFC cards into the system. Cards are created with status “Unassigned”.

Request

string
required
Bearer olive_live_xxx or Bearer eyJ... (JWT)
string
required
multipart/form-data

Form Data

file
required
CSV file with card data

CSV Format

Column Requirements

MAC addresses can use colons (:) or hyphens (-) as separators.

Response

boolean
Whether upload succeeded
string
Summary message
integer
Total rows in CSV
integer
Successfully created cards
array
List of rows with errors

Examples


Validation Rules

Serial Number

  • Must be unique in system
  • Alphanumeric characters
  • No special characters

MAC Address

  • Valid hex octets
  • 6 or 7 octets supported
  • Colons or hyphens allowed

Best Practices

  • Keep files under 10,000 rows for best performance
  • Split larger imports into batches
  • Review errors array after upload
  • Fix invalid rows and re-upload
  • Valid rows are still created even if some fail
  • Serial numbers must be unique
  • Duplicates in CSV are rejected
  • Existing cards in system are skipped

Permissions

Only users with system_admin role can upload cards.

Errors

Authorizations

Authorization
string
header
required

API Key for third-party integrations (WhatsApp, Smart PAY, VULT). Format: 'Bearer olive_live_xxxxxxxxxxxxx'

Body

multipart/form-data
file
file
required

CSV file with columns: serial_number, mac_address

batch_id
string
required

Batch identifier

Response

Upload successful with error log if any

The response is of type object.