Javascript
const url = 'https://api.gnosispay.com/api/v1/cards/{cardId}/status'; const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}, body: undefined}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); }
{ "activatedAt": "2023-11-07T05:31:56Z", "statusCode": 123, "isFrozen": true, "isStolen": true, "isLost": true, "isBlocked": true, "isVoid": true }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Card Status was retrieved successfully
The response is of type object.
object