Upload NFC cards via CSV file
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/cards/upload-csv \
--header 'Authorization: <api-key>' \
--header 'Content-Type: multipart/form-data' \
--form file=@example-file \
--form 'batch_id=<string>'const form = new FormData();
form.append('file', '<string>');
form.append('batch_id', '<string>');
const options = {method: 'POST', headers: {Authorization: '<api-key>'}};
options.body = form;
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/cards/upload-csv', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://olive-gateway-a6ba.onrender.com/api/v1/cards/upload-csv"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = { "batch_id": "<string>" }
headers = {"Authorization": "<api-key>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text){}{}{}Cards
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”
POST
/
cards
/
upload-csv
Upload NFC cards via CSV file
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/cards/upload-csv \
--header 'Authorization: <api-key>' \
--header 'Content-Type: multipart/form-data' \
--form file=@example-file \
--form 'batch_id=<string>'const form = new FormData();
form.append('file', '<string>');
form.append('batch_id', '<string>');
const options = {method: 'POST', headers: {Authorization: '<api-key>'}};
options.body = form;
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/cards/upload-csv', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://olive-gateway-a6ba.onrender.com/api/v1/cards/upload-csv"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = { "batch_id": "<string>" }
headers = {"Authorization": "<api-key>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text){}{}{}Authorizations
ApiKeyAuthBearerAuth
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.
⌘I