const options = {method: 'GET'};
fetch('https://gp-auth-module.prod.gnosispay.com/cards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"cards": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cardholderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "all",
"name": "<string>",
"type": "virtual",
"createdAt": "2023-11-07T05:31:56Z",
"canceledAt": "2023-11-07T05:31:56Z",
"nativeCurrency": "<string>",
"additionalCurrencies": [
"<string>"
],
"printedName": "<string>",
"issuingDate": "2023-11-07T05:31:56Z",
"expirationDate": "2023-11-07T05:31:56Z",
"contactlessEnabled": true,
"mode": "<string>",
"brand": "<string>",
"bin": "<string>",
"last4Digits": "<string>",
"provisionedAt": "2023-11-07T05:31:56Z"
}
]
}List all cards for the authenticated user. Returns both virtual and physical cards. Returns an empty list if no cardholder has been created yet.
const options = {method: 'GET'};
fetch('https://gp-auth-module.prod.gnosispay.com/cards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"cards": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cardholderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "all",
"name": "<string>",
"type": "virtual",
"createdAt": "2023-11-07T05:31:56Z",
"canceledAt": "2023-11-07T05:31:56Z",
"nativeCurrency": "<string>",
"additionalCurrencies": [
"<string>"
],
"printedName": "<string>",
"issuingDate": "2023-11-07T05:31:56Z",
"expirationDate": "2023-11-07T05:31:56Z",
"contactlessEnabled": true,
"mode": "<string>",
"brand": "<string>",
"bin": "<string>",
"last4Digits": "<string>",
"provisionedAt": "2023-11-07T05:31:56Z"
}
]
}Cards retrieved successfully
Show child attributes