Javascript
const url = 'https://api.gnosispay.com/api/v1/cards'; 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); }
[ { "id": "<string>", "cardToken": "<string>", "lastFourDigits": "<string>", "activatedAt": "2023-11-07T05:31:56Z", "virtual": true, "statusCode": 1000, "statusName": "<string>" } ]
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Exclude voided cards from the response
Filter cards by status code
The list of cards for a user
The response is of type object[].
object[]