Querying for accounts

Use the following endpoints to query for accounts:

  • GET /account/v1/accounts
  • GET /account/v1/accounts/{accountId}

For example, the following is a portion of the payload that is returned when retrieving account pc:477.

GET /account/v1/accounts/pc:477

{
  "data": {
    "attributes": {
      "accountHolder": {
        "displayName": "Agnes Allenson",
        "id": "pc:SdImoclfPl10vrB0wMXoo"
      },
      "accountNumber": "8990509182",
      "accountStatus": {
        "code": "Pending",
        "name": "Pending"
      },
      "id": "pc:477",
      "numberOfContacts": "1",
      "organizationType": {
        "code": "individual",
        "name": "Individual"
      },
      "primaryLocation": {
        "displayName": "1: Location 0001",
        "id": "pc:S_4dxAb4ZhvmMM-vrmoAU",
        "type": "AccountLocation",
        "uri": "/account/v1/accounts/pc:477/locations/pc:119"
      },
      "producerCodes": [
        {
          "displayName": "100-002541",
          "id": "pc:6"
        }
      ]
    }
...