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"
}
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"
}
{
"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
.Show properties
updates
and
billing
.