Terminate Card
This endpoint is used to permanently close/terminate a card. Terminated cards cannot be reused and balances on terminated cards will be credited to the USD float wallet
POST {{base_url}}/business/vcard-terminate
Headers
Name
Type
Description
Authorization*
String
SECRET_KEY
Request Body
Name
Type
Description
vcardid*
Sting
Virtual card ID
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/vcard-terminate' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer SECRET_KEY' \
--data '{
"vcardid": "ao022-22e23o-2238-2829d"
}'const axios = require('axios');
let data = JSON.stringify({
"vcardid": "ao022-22e23o-2238-2829d"
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: '{{base_url}}/business/vcard-terminate'
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 terminated"
}{
"status": false
"responsecode": "00",
"message": "Unable to process card termination"
}Last updated
Was this helpful?
