JavaScript
const options = {method: 'POST'}; fetch('https://gp-auth-module.prod.gnosispay.com/cards/{cardId}/block', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "error": "<string>" }
Blocks a card temporarily. A blocked card cannot be used for transactions. Use unblock to restore access. The card must belong to the authenticated user’s cardholder.
Card blocked successfully