Alladdin

Work in progress

Site en construction

الموقع قيد الإنشاء

Alladdin
GET

Get an expenses account by ID

Scope: accounting:expenses-accounts.read https://api.alladdin.com/api/v2/expenses-accounts/{expensesAccountId}

Retrieves the details of a single expenses account by its unique identifier.
The response includes the account name, color, accounting number, and archived status.

Parameters

Path parameters

expensesAccountId string required

Expenses Account ID (24-char hex ObjectId)

Request

python
import requests

url = "https://api.alladdin.com/api/v2/expenses-accounts/{expensesAccountId}"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())

Responses

Response

json
{
  "id": "507f1f77bcf86cd799439011",
  "name": "Office Expenses",
  "color": "#FF5733",
  "account_num": 6290001,
  "archived": false,
  "description": "string"
}

Success responses

200 Expenses account found application/json object id string

Unique identifier of the accounting account

name string

Display name of the accounting account

color string

Hex color code used in the UI

account_num integer

Numeric accounting code from the chart of accounts

archived boolean

Whether the account is archived

description string | null

Description of the accounting account

Error responses

401 Invalid or missing API key application/json 403 Insufficient permissions application/json 404 Expenses account not found application/json

← PreviousList all expenses accounts →

Next →Delete an expenses account →