Freeze and Unfreeze Card
This endpoint is used to disable or enable a virtual card
Headers
Name
Type
Description
Request Body
Name
Type
Description
curl --location '{{base_url}}/business/vcard-update' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer SECRET_KEY' \
--data '{
"vcardid": "ao022-22e23o-2238-2829d",
"updatetype": "freeze"
}'const axios = require('axios');
let data = JSON.stringify({
"vcardid": "ao022-22e23o-2238-2829d",
"updatetype": "freeze"
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: '{{base_url}}/business/vcard-update'
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,
"responsecode": "01",
"message": "Card successfully updated"
}{
"status": false
"responsecode": "00",
"message": "Unable tot process request"
}Last updated
