Customers
Events & Usage Metering
Invoices
Subscriptions
Customers
Get Customer
GET
/
accounts
/
{id}
Copy
curl --request GET \
--url https://api.alguna.io/accounts/{id} \
--header 'Authorization: Bearer <token>'
Copy
{
"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": "sales@gojo.com",
"firstName": "Henry",
"lastName": "Sules",
"isPrimary": true,
"emailPreferences": ["updates"]
},
{
"id": "FdqPzqFG",
"email": "finance@gojo.com",
"firstName": "Accounts",
"lastName": "Receivable",
"isPrimary": false,
"emailPreferences": ["billing"]
}
],
"createdAt": "2023-09-05T21:54:54.609688Z",
"updatedAt": "2023-09-05T21:54:54.609689Z"
}
Params
The ID of the account to fetch.
Response
Copy
{
"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": "sales@gojo.com",
"firstName": "Henry",
"lastName": "Sules",
"isPrimary": true,
"emailPreferences": ["updates"]
},
{
"id": "FdqPzqFG",
"email": "finance@gojo.com",
"firstName": "Accounts",
"lastName": "Receivable",
"isPrimary": false,
"emailPreferences": ["billing"]
}
],
"createdAt": "2023-09-05T21:54:54.609688Z",
"updatedAt": "2023-09-05T21:54:54.609689Z"
}
The Alguna ID of the account.
The name of the account.
The list of alternative or external IDs for the account. These can be used to
identify the account in place of the Alguna id
.
The contacts associated with the account.
The Alguna ID of the contact.
The email address of the contact.
The first name of the contact.
The last name of the contact.
Whether the contact is the primary contact for the account.
The email preferences for the contact. Valid values are updates
and
billing
.
The ISO 4217 currency in which the account is billed.
The date and time at which the account was created.
The date and time at which the account was last updated.
Copy
curl --request GET \
--url https://api.alguna.io/accounts/{id} \
--header 'Authorization: Bearer <token>'
Copy
{
"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": "sales@gojo.com",
"firstName": "Henry",
"lastName": "Sules",
"isPrimary": true,
"emailPreferences": ["updates"]
},
{
"id": "FdqPzqFG",
"email": "finance@gojo.com",
"firstName": "Accounts",
"lastName": "Receivable",
"isPrimary": false,
"emailPreferences": ["billing"]
}
],
"createdAt": "2023-09-05T21:54:54.609688Z",
"updatedAt": "2023-09-05T21:54:54.609689Z"
}
Assistant
Responses are generated using AI and may contain mistakes.