Step 3: list all accounts

First, let's double-check that your account has been added properly and see if there are any other accounts associated with your API key.

SandboxProduction
Copy
Copied
curl -i -X GET 'https://api-sandbox.equalsmoney.com/v2/accounts' \
  -H 'Authorization: ApiKey {apiKey}' # The API key that you were provided with during onboarding
Copy
Copied
curl -i -X GET 'https://api.equalsmoney.com/v2/accounts' \
  -H 'Authorization: ApiKey {apiKey}' # The API key that you were provided with during onboarding

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

In this example, the newly-created account is the only one other that's associated with this API key so there are only two results.

Copy
Copied
{
  "count": 2,
  "limit": 100,
  "offset": 0,
  "rows": [
    {
		"id": "F12345",
		"productId": "d926625b-5e11-4ec1-b4cd-0af2a8021efc",
		"marketId": "091505ff-55e1-11ed-9dd3-06e3d0fbf8b0",
		"bankEntity": "CITI",
		"type": "Business",
		"status": "active",
		"primaryOwnerPersonaId": "3e0904b6-2d7c-433b-80fd-547261776c63",
		"termsAccepted": true,
		"privacyAccepted": true,
		"salesperson": "Equals Money",
		"accountManager": "Equals Money",
		"solutions": false,
		"createdAt": "2023-10-02T10:29:29.000Z",
		"updatedAt": "2023-10-02T10:31:01.000Z",
		"business": {
			"logo": {
				"url": "",
				"fileName": ""
			},
			"accountId": "F12345",
			"name": "ACME",
			"countryOfRegistration": "",
			"companyType": "ltd",
			"companiesHouseId": "1234567890",
			"telephoneNumber": "+47481280253",
			"timezone": "Europe/London",
			"registeredName": "ACME",
			"fourthLine": null,
			"tradingName": "ACME",
			"website": "",
			"industry": "",
			"createdAt": "2023-10-02T10:29:29.000Z",
			"updatedAt": "2023-10-02T10:29:29.000Z"
		},
		"personal": null,
		"features": {
			"id": "77ef49e9-0bc7-4dbd-aa82-09f241b42bf2",
			"cards": false,
			"physicalCards": "inactive",
			"virtualCards": "inactive",
			"microCorp": false,
			"payments": true,
			"sharedCardProductId": null,
			"individualVirtualCardProductId": null,
			"individualPhysicalCardProductId": null,
			"useBalanceName": false,
			"forwardContracts": false,
			"sourceOfBalance": "boxes",
			"cardsIndividualType": "prepaid",
			"cardsSharedType": "prepaid",
			"statementsFrom": "2023-10-02T10:29:50.000Z",
			"selfApprove": false,
			"apiIgnorePaymentApproval": true,
			"moveMoneyRequests": false,
			"subBalances": false,
			"createdAt": "2023-10-02T10:18:44.000Z",
			"updatedAt": "2023-10-02T10:18:44.000Z"
		}
	},
    {
      "id": "F54321",
      "productId": "34b61e61-a107-4bea-8efc-edf70c8e8e57",
      "marketId": "4c246ef2-e12c-4c4e-aab5-6eb00171cdbf",
      "bankEntity": "CITI",
      "type": "Business",
      "status": "active",
      "primaryOwnerPersonaId": "08ffed65-7c23-405f-b2fa-c6b48a70dfa5",
      "termsAccepted": true,
      "privacyAccepted": true,
      "salesperson": "Equals Money",
      "accountManager": "Equals Money",
      "solutions": false,
      "createdAt": "2023-10-01T08:30:000Z",
      "updatedAt": "2023-10-01T08:30:000Z",
      "business": {
        "logo": {
          "url": "",
          "fileName": ""
        },
        "accountId": "F12345",
        "name": "NOT ACME",
        "countryOfRegistration": "",
        "companyType": "ltd",
        "companiesHouseId": "1234567890",
        "telephoneNumber": "+7700900330",
        "timezone": "Europe/London",
        "registeredName": "NOT ACME",
        "fourthLine": null,
        "tradingName": "NOT ACME",
        "website": "",
        "industry": "",
        "createdAt": "2023-10-01T08:30:000Z",
        "updatedAt": "2023-10-01T08:30:000Z"
      },
      "personal": null,
      "features": {
        "id": "1ab650da-e0b3-4978-982a-207d24b1ac49",
        "cards": false,
        "physicalCards": "inactive",
        "virtualCards": "inactive",
        "microCorp": false,
        "payments": true,
        "sharedCardProductId": null,
        "individualVirtualCardProductId": null,
        "individualPhysicalCardProductId": null,
        "useBalanceName": false,
        "forwardContracts": false,
        "sourceOfBalance": "boxes",
        "cardsIndividualType": "prepaid",
        "cardsSharedType": "prepaid",
        "statementsFrom": "2023-10-01T08:30:000Z",
        "selfApprove": false,
        "apiIgnorePaymentApproval": true,
        "moveMoneyRequests": false,
        "subBalances": false,
        "createdAt": "2023-10-01T08:30:000Z",
        "updatedAt": "2023-10-01T08:30:000Z"
      }
    }
  ]
}
info

You can also retrieve an account by using its accountId. For more information, see the API reference.

Next