JavaScript
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.valox.co/api/v1/cards/{cardId}/void', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "status": "Card marked as void successfully" }
Void a virtual card. Only virtual cards can be voided using this endpoint.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Card marked as void successfully