Cards
Upload Cards CSV
Bulk upload NFC cards via CSV file
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-dataForm 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
File Size
File Size
- Keep files under 10,000 rows for best performance
- Split larger imports into batches
Error Handling
Error Handling
- Review errors array after upload
- Fix invalid rows and re-upload
- Valid rows are still created even if some fail
Duplicate Detection
Duplicate Detection
- Serial numbers must be unique
- Duplicates in CSV are rejected
- Existing cards in system are skipped
Permissions
Errors
Authorizations
API Key for third-party integrations (WhatsApp, Smart PAY, VULT). Format: 'Bearer olive_live_xxxxxxxxxxxxx'
Body
multipart/form-data
Response
Upload successful with error log if any
The response is of type object.