Step 2: list all cards

Next, let's get a list of all the cards currently associated with your account.

SandboxProduction
Copy
Copied
curl -i -X GET \
  'https://api-sandbox.equalsmoney.com/v2/cards?accountId={accountId}' \
  -H 'Authorization: ApiKey {apiKey}'
Copy
Copied
curl -i -X GET \
  'https://api.equalsmoney.com/v2/cards?accountId={accountId}' \
  -H 'Authorization: ApiKey {apiKey}'

If your request is successful, you'll receive a 200 response containing a list of cards.

Copy
Copied
{
  "count": 3,
  "limit": 100,
  "offset": 0,
  "rows": [
    {
      "id": "d5d878eb-9418-4b2a-a00f-17fe801c6df2",
      "name": "Travel expenses",
      "personId": "cfd2431d-a682-4167-adfa-5975bc47aaf5",
      "accountId": "F12345",
      "state": "ACTIVE",
      "cardType": "VIRTUAL_PAN",
      "lastFour": "7813",
      "cardProductToken": "23ada04b-5b3b-4b73-8343-da3f14d8d96f",
      "fulfillmentStatus": "ISSUED",
      "expiration": "0128",
      "pinIsSet": false,
      "recipientAddress": null,
      "cardPersonalization": null,
      "careOfLine": null,
      "budgetCardPhoneNumber": null,
      "userTokenId": "5609caee-f89d-4e49-8d2e-6e4d8f8d0422",
      "cardOwnerType": "PEOPLE",
      "budgetCardPhoneNumberPersonId": null,
      "cardGroupId": "d5d878eb-9418-4b2a-a00f-17fe801c6df2",
      "cardProductId": "029bddac-7ef0-11ee-8764-06395f802f08",
      "physicalCardState": "NOT_REQUESTED",
      "physicalCardId": null,
      "forceChangePin": false,
      "createdAt": "2024-01-10T13:39:33.000Z",
      "updatedAt": "2024-01-10T13:40:53.000Z",
      "token": {
        "id": "5609caee-f89d-4e49-8d2e-6e4d8f8d0422",
        "personId": "cfd2431d-a682-4167-adfa-5975bc47aaf5",
        "accountId": "F51310",
        "userToken": "c8b9f4a6-b254-4b01-a3b3-9c266980e36c",
        "budgetId": null
      },
      "meta": [
        {
          "id": "38e0958a-c9d9-4924-959e-36638970439f",
          "cardId": "d5d878eb-9418-4b2a-a00f-17fe801c6df2",
          "metaKey": "stateReason",
          "metaValue": "New card",
          "createdAt": "2024-01-10T13:39:33.000Z",
          "updatedAt": "2024-01-10T13:39:33.000Z",
          "CardId": "d5d878eb-9418-4b2a-a00f-17fe801c6df2"
        },
        {
          "id": "972753a6-384b-4855-ba13-f571c20ce109",
          "cardId": "d5d878eb-9418-4b2a-a00f-17fe801c6df2",
          "metaKey": "expirationTime",
          "metaValue": "2028-01-31T23:59:59Z",
          "createdAt": "2024-01-10T13:39:33.000Z",
          "updatedAt": "2024-01-10T13:39:33.000Z",
          "CardId": "d5d878eb-9418-4b2a-a00f-17fe801c6df2"
        }
      ],
      "budget": {
        "id": "0ca2bb87-4d5b-4b14-99c8-cbb8fccff45b",
        "name": "Account balance"
      }
    },
    {
      "id": "800065b2-4d12-42ac-940c-00cd930e3758",
      "name": "Marketing",
      "personId": "cfd2431d-a682-4167-adfa-5975bc47aaf5",
      "accountId": "F12345",
      "state": "ACTIVE",
      "cardType": "VIRTUAL_PAN",
      "lastFour": "3315",
      "cardProductToken": "23ada04b-5b3b-4b73-8343-da3f14d8d96f",
      "fulfillmentStatus": "ISSUED",
      "expiration": "0128",
      "pinIsSet": false,
      "recipientAddress": {
        "city": "Porterville",
        "country": "US",
        "address1": "123 Henry St",
        "lastName": "Doe",
        "firstName": "Jane",
        "postalCode": "93257"
      },
      "cardPersonalization": null,
      "careOfLine": null,
      "budgetCardPhoneNumber": null,
      "userTokenId": "5609caee-f89d-4e49-8d2e-6e4d8f8d0422",
      "cardOwnerType": "PEOPLE",
      "budgetCardPhoneNumberPersonId": null,
      "cardGroupId": "800065b2-4d12-42ac-940c-00cd930e3758",
      "cardProductId": "029bddac-7ef0-11ee-8764-06395f802f08",
      "physicalCardState": "PENDING_ACTIVATION",
      "physicalCardId": "0302fbed-6078-4497-a580-61ad686eb228",
      "forceChangePin": false,
      "createdAt": "2024-01-18T13:42:51.000Z",
      "updatedAt": "2024-01-18T13:53:01.000Z",
      "token": {
        "id": "5609caee-f89d-4e49-8d2e-6e4d8f8d0422",
        "personId": "cfd2431d-a682-4167-adfa-5975bc47aaf5",
        "accountId": "F12345",
        "userToken": "c8b9f4a6-b254-4b01-a3b3-9c266980e36c",
        "budgetId": null
      },
      "meta": [
        {
          "id": "8a98c26c-8196-4f40-ba72-037569a0a8d0",
          "cardId": "800065b2-4d12-42ac-940c-00cd930e3758",
          "metaKey": "expirationTime",
          "metaValue": "2028-01-31T23:59:59Z",
          "createdAt": "2024-01-18T13:42:51.000Z",
          "updatedAt": "2024-01-18T13:42:51.000Z",
          "CardId": "800065b2-4d12-42ac-940c-00cd930e3758"
        },
        {
          "id": "ee473b51-d16b-429d-8017-d13cd2361925",
          "cardId": "800065b2-4d12-42ac-940c-00cd930e3758",
          "metaKey": "stateReason",
          "metaValue": "New card",
          "createdAt": "2024-01-18T13:42:51.000Z",
          "updatedAt": "2024-01-18T13:42:51.000Z",
          "CardId": "800065b2-4d12-42ac-940c-00cd930e3758"
        }
      ],
      "budget": {
        "id": "0ca2bb87-4d5b-4b14-99c8-cbb8fccff45b",
        "name": "Account balance"
      }
    },
    {
      "id": "5bff4edb-df84-4db3-bbef-e2a71fb99bce",
      "name": "Team party",
      "personId": "cfd2431d-a682-4167-adfa-5975bc47aaf5",
      "accountId": "F12345",
      "state": "ACTIVE",
      "cardType": "VIRTUAL_PAN",
      "lastFour": "0231",
      "cardProductToken": "23ada04b-5b3b-4b73-8343-da3f14d8d96f",
      "fulfillmentStatus": "ISSUED",
      "expiration": "0128",
      "pinIsSet": false,
      "recipientAddress": null,
      "cardPersonalization": null,
      "careOfLine": null,
      "budgetCardPhoneNumber": null,
      "userTokenId": "5609caee-f89d-4e49-8d2e-6e4d8f8d0422",
      "cardOwnerType": "PEOPLE",
      "budgetCardPhoneNumberPersonId": null,
      "cardGroupId": "5bff4edb-df84-4db3-bbef-e2a71fb99bce",
      "cardProductId": "029bddac-7ef0-11ee-8764-06395f802f08",
      "physicalCardState": "NOT_REQUESTED",
      "physicalCardId": null,
      "forceChangePin": false,
      "createdAt": "2024-01-08T16:26:26.000Z",
      "updatedAt": "2024-01-10T11:38:40.000Z",
      "token": {
        "id": "5609caee-f89d-4e49-8d2e-6e4d8f8d0422",
        "personId": "cfd2431d-a682-4167-adfa-5975bc47aaf5",
        "accountId": "F12345",
        "userToken": "c8b9f4a6-b254-4b01-a3b3-9c266980e36c",
        "budgetId": null
      },
      "meta": [
        {
          "id": "170f61d4-9711-408a-9f3e-fbb4601f8d9a",
          "cardId": "5bff4edb-df84-4db3-bbef-e2a71fb99bce",
          "metaKey": "expirationTime",
          "metaValue": "2028-01-31T23:59:59Z",
          "createdAt": "2024-01-08T16:26:26.000Z",
          "updatedAt": "2024-01-08T16:26:26.000Z",
          "CardId": "5bff4edb-df84-4db3-bbef-e2a71fb99bce"
        },
        {
          "id": "1f93ba30-8f0b-4116-9198-afe896821d3c",
          "cardId": "5bff4edb-df84-4db3-bbef-e2a71fb99bce",
          "metaKey": "stateReason",
          "metaValue": "New card",
          "createdAt": "2024-01-08T16:26:26.000Z",
          "updatedAt": "2024-01-08T16:26:26.000Z",
          "CardId": "5bff4edb-df84-4db3-bbef-e2a71fb99bce"
        }
      ],
      "budget": {
        "id": "0ca2bb87-4d5b-4b14-99c8-cbb8fccff45b",
        "name": "Account balance"
      }
    }
  ]
}

Next