GET
/
accounts
/
{id}
Get Customer
curl --request GET \
  --url https://api.alguna.io/accounts/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "ywgWhtGp",
  "name": "GoJo",
  "aliases": ["JoGo"],
  "currency": "USD",
  "billingAddress": {
    "line1": "123 Main St",
    "line2": "Suite 100",
    "city": "New York",
    "state": "NY",
    "postalCode": "10001"
  },
  "contacts": [
    {
      "id": "OLgPyqFF",
      "email": "[email protected]",
      "firstName": "Henry",
      "lastName": "Sules",
      "isPrimary": true,
      "emailPreferences": ["updates"]
    },
    {
      "id": "FdqPzqFG",
      "email": "[email protected]",
      "firstName": "Accounts",
      "lastName": "Receivable",
      "isPrimary": false,
      "emailPreferences": ["billing"]
    }
  ],
  "createdAt": "2023-09-05T21:54:54.609688Z",
  "updatedAt": "2023-09-05T21:54:54.609689Z"
}

Params

id
string
The ID of the account to fetch.

Response

{
  "id": "ywgWhtGp",
  "name": "GoJo",
  "aliases": ["JoGo"],
  "currency": "USD",
  "billingAddress": {
    "line1": "123 Main St",
    "line2": "Suite 100",
    "city": "New York",
    "state": "NY",
    "postalCode": "10001"
  },
  "contacts": [
    {
      "id": "OLgPyqFF",
      "email": "[email protected]",
      "firstName": "Henry",
      "lastName": "Sules",
      "isPrimary": true,
      "emailPreferences": ["updates"]
    },
    {
      "id": "FdqPzqFG",
      "email": "[email protected]",
      "firstName": "Accounts",
      "lastName": "Receivable",
      "isPrimary": false,
      "emailPreferences": ["billing"]
    }
  ],
  "createdAt": "2023-09-05T21:54:54.609688Z",
  "updatedAt": "2023-09-05T21:54:54.609689Z"
}
id
string
The Alguna ID of the account.
name
string
The name of the account.
aliases
[]string
The list of alternative or external IDs for the account. These can be used to identify the account in place of the Alguna id.
contacts
[]Contact
The contacts associated with the account.
billingAddress
Address
The billing address for the account.
currency
string
The ISO 4217 currency in which the account is billed.
createdAt
datetime
The date and time at which the account was created.
updatedAt
datetime
The date and time at which the account was last updated.