Link parent card to subscriber
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/cards/link \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"card_serial": "OLIV0001",
"pin": "1234",
"subscriber_id": "subscriber-uuid"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({card_serial: 'OLIV0001', pin: '1234', subscriber_id: 'subscriber-uuid'})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/cards/link', 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/link"
payload = {
"card_serial": "OLIV0001",
"pin": "1234",
"subscriber_id": "subscriber-uuid"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}{}Cards
Link parent card to subscriber
Link a parent NFC card to a subscriber account
POST
/
cards
/
link
Link parent card to subscriber
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/cards/link \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"card_serial": "OLIV0001",
"pin": "1234",
"subscriber_id": "subscriber-uuid"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({card_serial: 'OLIV0001', pin: '1234', subscriber_id: 'subscriber-uuid'})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/cards/link', 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/link"
payload = {
"card_serial": "OLIV0001",
"pin": "1234",
"subscriber_id": "subscriber-uuid"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}{}Authorizations
ApiKeyAuthBearerAuth
API Key for third-party integrations (WhatsApp, Smart PAY, VULT). Format: 'Bearer olive_live_xxxxxxxxxxxxx'
Body
application/json
Link card details
Response
Card linked successfully
The response is of type object.
⌘I