Change child card PIN
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/cards/child/change-pin \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"card_serial": "OLIV0002",
"new_child_pin": "9999",
"old_child_pin": "5678",
"parent_pin": "1234",
"parent_subscriber_id": "parent-uuid"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
card_serial: 'OLIV0002',
new_child_pin: '9999',
old_child_pin: '5678',
parent_pin: '1234',
parent_subscriber_id: 'parent-uuid'
})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/cards/child/change-pin', 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/child/change-pin"
payload = {
"card_serial": "OLIV0002",
"new_child_pin": "9999",
"old_child_pin": "5678",
"parent_pin": "1234",
"parent_subscriber_id": "parent-uuid"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}{}Cards
Change child card PIN
Parent changes the PIN for a child card. Requires parent’s PIN for authentication, current child PIN, and new child PIN. The child uses their PIN when making payments for security.
POST
/
cards
/
child
/
change-pin
Change child card PIN
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/cards/child/change-pin \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"card_serial": "OLIV0002",
"new_child_pin": "9999",
"old_child_pin": "5678",
"parent_pin": "1234",
"parent_subscriber_id": "parent-uuid"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
card_serial: 'OLIV0002',
new_child_pin: '9999',
old_child_pin: '5678',
parent_pin: '1234',
parent_subscriber_id: 'parent-uuid'
})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/cards/child/change-pin', 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/child/change-pin"
payload = {
"card_serial": "OLIV0002",
"new_child_pin": "9999",
"old_child_pin": "5678",
"parent_pin": "1234",
"parent_subscriber_id": "parent-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
Change child card PIN details
Response
PIN changed successfully
The response is of type object.
⌘I