Update Card PIN
This endpoint allows you to change PIN for a specific card.
POST {{base_url}}/business/change-cardpin
Headers
Name
Type
Description
Authorization*
String
SECRET_KEY
Request Body
Name
Type
Description
cardid*
Sting
Card ID
oldpin*
Integer
4 digits old card PIN
newpin*
Integer
4 digits new card PIN
Your secret keys are to be kept secret and only stored on your servers. Do not pass your secret key to the front-end language where it can be exploited.
Take a look at how you might do this:
curl --location '{{base_url}}/business/change-cardpin' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer SECRET_KEY' \
--data '{
"cardid": "ao022-22e23o-2238-2829d"
}'const axios = require('axios');
let data = JSON.stringify({
"cardid": "ao022-22e23o-2238-2829d"
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: '{{base_url}}/business/change-cardpin'
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer SECRET_KEY'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Sample response
{
"status": true,
"msg": "Card PIN Successfully Updated"
}Last updated
Was this helpful?
