JavaScript
const options = {method: 'POST'}; fetch('https://gp-auth-module.prod.gnosispay.com/cards/{cardId}/cancel', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "error": "<string>" }
Cancels a card permanently. Once canceled, the card cannot be reactivated. A new card must be issued. The card must belong to the authenticated user’s cardholder.
Card canceled successfully