Returns the data collections needed for the first web app load: accounts, allowance countries, company, currencies, user, vats, vehicles, vendors.
Expenses grouped by state are available via /expenses
Expenses in accounted state are available via /archive
An example output for the test company:
GET /api/home
200
{
"company": {
"id": 19,
"name": "Japanese Zaibatsu",
"business_id": null,
"created_at": "2020-04-24T14:39:06.430Z",
"updated_at": "2022-12-20T22:43:04.013Z",
"schedule": "weekly",
"lock_until": "2023-01-14",
"accountant_email": null,
"send_receipts_weekdays": [],
"iban": null,
"country_id": 10,
"software_id": 5,
"locale": "fi",
"mileage_vehicle_category_id": 1,
"allowance_country_category_id": 1,
"deleted_at": null,
"bic": null,
"einvoice_address": null,
"allowance_account_id": 789,
"mileage_account_id": 567,
"data": {
"policy_en": "",
"policy_fi": "",
"policy_sv": ""
},
"default_approver_id": null,
"is_vat_registered": true,
"is_managing": false,
"uuid": "4ae1a784-d2d1-4699-a1dc-91edd8eff132",
"show_trip_form": true,
"show_daily_allowance_form": true,
"reimbursement_account_id": null,
"employees_see_all_users": false,
"required_ssn_for_users": false,
"ssn_visible_on_forms_and_export": false,
"show_reward_form": true,
"tax_account_code": null,
"reward_account_code": null,
"password_auth_disabled": false,
"allowance_abroad_account_id": 789,
"activate_default_receipts_filter": false,
"is_nonprofit": false,
"reseller_id": null,
"integration_id": 23,
"send_data_to_incomes_register": true,
"count_additional_passengers": true,
"show_change_approval_cycle": true,
"external_id": null,
"encrypted_okta_client_id": null,
"encrypted_okta_client_secret": null,
"missing_receipts_weekly_reminder": false,
"okta_url": null,
"domain": null,
"group_id": null,
"user_request_recipients": null,
"contact_person_for_invoicing": null,
"employees_are_athletes": false,
"custom_reward_alias": null,
"support_person": null,
"missing_receipts_daily_reminder": false,
"show_budgets": true,
"allow_foreign_currency_vat": false,
"encrypted_okta_mobile_client_id": null,
"notify_users_about_payments": false,
"mark_all_free_meals_by_default": false,
"notes": null
},
"cost_centers": [],
"accounts": [
{
"id": 207,
"code": "2000",
"name": "Japanese Expense",
"url": "/api/accounts/207",
"assignee_ids": [],
"position": 2,
"default_vat_id": null,
"accountable_type": "ExpenseAccount",
"deactivated": false,
"limit": "",
"limit_type": "yearly",
"show_participants_field": false,
"show_on_receipt_form": true,
"max_vat_deduction": "",
"conditional_fields_description": null,
"conditional_fields": [],
"vat_mappings": []
},
{
"id": 333,
"code": "1111",
"name": "Daimyo reward",
"url": "/api/accounts/333",
"assignee_ids": [],
"position": 3,
"default_vat_id": null,
"accountable_type": "ExpenseAccount",
"deactivated": false,
"limit": "",
"limit_type": "yearly",
"show_participants_field": false,
"show_on_receipt_form": true,
"max_vat_deduction": "",
"conditional_fields_description": "",
"conditional_fields": [],
"vat_mappings": []
},
{
"id": 334,
"code": "3333",
"name": "Another reward",
"url": "/api/accounts/334",
"assignee_ids": [],
"position": 4,
"default_vat_id": null,
"accountable_type": "ExpenseAccount",
"deactivated": false,
"limit": "",
"limit_type": "yearly",
"show_participants_field": false,
"show_on_receipt_form": true,
"max_vat_deduction": "",
"conditional_fields_description": "",
"conditional_fields": [],
"vat_mappings": []
},
{
"id": 335,
"code": "555",
"name": "Koku",
"url": "/api/accounts/335",
"assignee_ids": [],
"position": 5,
"default_vat_id": null,
"accountable_type": "ExpenseAccount",
"deactivated": false,
"limit": "",
"limit_type": "yearly",
"show_participants_field": false,
"show_on_receipt_form": true,
"max_vat_deduction": "",
"conditional_fields_description": "",
"conditional_fields": [],
"vat_mappings": []
},
{
"id": 206,
"code": "1000",
"name": "Japanese Asset",
"url": "/api/accounts/206",
"assignee_ids": [],
"position": 1,
"default_vat_id": null,
"accountable_type": "AssetAccount",
"deactivated": false,
"limit": "",
"limit_type": "yearly",
"show_participants_field": false,
"max_vat_deduction": "",
"conditional_fields_description": null,
"credit_cards": []
}
],
"allowance_countries": [
{
"id": 8,
"name": "Japan",
"country": {
"id": 10,
"name": "Japan",
"currency": "JPY",
"created_at": "2020-04-24T14:41:04.217Z",
"updated_at": "2020-04-24T14:41:04.217Z",
"code": null,
"default_tax_percentage": "0.0"
},
"currency_symbol": "¥",
"has_breakfast": false,
"has_free_meal_days": true,
"free_meal_day_threshold": 2,
"free_meal_day_per_date": false,
"multi_country": true
},
{
"id": 9,
"name": "Vietnam",
"country": {
"id": 10,
"name": "Japan",
"currency": "JPY",
"created_at": "2020-04-24T14:41:04.217Z",
"updated_at": "2020-04-24T14:41:04.217Z",
"code": null,
"default_tax_percentage": "0.0"
},
"currency_symbol": "¥",
"has_breakfast": false,
"has_free_meal_days": true,
"free_meal_day_threshold": 2,
"free_meal_day_per_date": false,
"multi_country": true
}
],
"vats": [
{
"id": 0,
"title": "Abroad, VAT (0%)",
"value": "0.0"
}
],
"vehicles": [
{
"id": 1,
"name": "Auto",
"country": {
"id": 1,
"name": "Finland",
"currency": "EUR",
"created_at": "2017-09-06T11:51:21.283Z",
"updated_at": "2021-01-15T18:09:35.537Z",
"code": "FI",
"default_tax_percentage": "0.6"
}
},
{
"id": 2,
"name": "Bicicletta",
"country": {
"id": 1,
"name": "Finland",
"currency": "EUR",
"created_at": "2017-09-06T11:51:21.283Z",
"updated_at": "2021-01-15T18:09:35.537Z",
"code": "FI",
"default_tax_percentage": "0.6"
}
},
{
"id": 6,
"name": "Finnish Auto",
"country": {
"id": 1,
"name": "Finland",
"currency": "EUR",
"created_at": "2017-09-06T11:51:21.283Z",
"updated_at": "2021-01-15T18:09:35.537Z",
"code": "FI",
"default_tax_percentage": "0.6"
}
},
{
"id": 9,
"name": "Autolla (0.43 EUR/km)",
"country": {
"id": 1,
"name": "Finland",
"currency": "EUR",
"created_at": "2017-09-06T11:51:21.283Z",
"updated_at": "2021-01-15T18:09:35.537Z",
"code": "FI",
"default_tax_percentage": "0.6"
}
}
],
"currencies": [
{
"symbol": "€",
"code": "EUR",
"symbol_with_code": "€ (EUR)",
"code_with_name": "EUR, €"
},
{
"symbol": "$",
"code": "USD",
"symbol_with_code": "$ (USD)",
"code_with_name": "USD, US Dollar"
},
{
"symbol": "¥",
"code": "JPY",
"symbol_with_code": "¥ (JPY)",
"code_with_name": "JPY, Japanese Yen"
},
{
"symbol": "£",
"code": "GBP",
"symbol_with_code": "£ (GBP)",
"code_with_name": "GBP, Pound Sterling"
},
{
"symbol": "kr",
"code": "SEK",
"symbol_with_code": "kr (SEK)",
"code_with_name": "SEK, Swedish Krona"
},
{
"symbol": "kr",
"code": "NOK",
"symbol_with_code": "kr (NOK)",
"code_with_name": "NOK, Norwegian Krone"
},
{
"symbol": "kr.",
"code": "DKK",
"symbol_with_code": "kr. (DKK)",
"code_with_name": "DKK, Danish Crown"
},
{
"symbol": "CHF",
"code": "CHF",
"symbol_with_code": "CHF (CHF)",
"code_with_name": "CHF, Swiss Franc"
},
{
"symbol": "Lt",
"code": "LTL",
"symbol_with_code": "Lt (LTL)",
"code_with_name": "LTL, Lithuanian Litas"
},
{
"symbol": "$",
"code": "CAD",
"symbol_with_code": "$ (CAD)",
"code_with_name": "CAD, Canadian Dollar"
},
{
"symbol": "$",
"code": "HKD",
"symbol_with_code": "$ (HKD)",
"code_with_name": "HKD, Hongkong Dollar"
},
{
"symbol": "$",
"code": "AUD",
"symbol_with_code": "$ (AUD)",
"code_with_name": "AUD, Australian Dollar"
},
{
"symbol": "$",
"code": "NZD",
"symbol_with_code": "$ (NZD)",
"code_with_name": "NZD, New Zealand Dollar"
},
{
"symbol": "R",
"code": "ZAR",
"symbol_with_code": "R (ZAR)",
"code_with_name": "ZAR, South African Rand"
},
{
"symbol": "ر.س",
"code": "SAR",
"symbol_with_code": "ر.س (SAR)",
"code_with_name": "SAR, Saudi Arabian Riyal"
},
{
"symbol": "د.م.",
"code": "MAD",
"symbol_with_code": "د.م. (MAD)",
"code_with_name": "MAD, Morocco Dirham"
},
{
"symbol": "د.ك",
"code": "KWD",
"symbol_with_code": "د.ك (KWD)",
"code_with_name": "KWD, Kuwaiti Dinar"
},
{
"symbol": "د.إ",
"code": "AED",
"symbol_with_code": "د.إ (AED)",
"code_with_name": "AED, United Arab Emirates Dirham"
},
{
"symbol": "$",
"code": "SGD",
"symbol_with_code": "$ (SGD)",
"code_with_name": "SGD, Singapore Dollar"
},
{
"symbol": "RM",
"code": "MYR",
"symbol_with_code": "RM (MYR)",
"code_with_name": "MYR, Malaysian Ringgit"
},
{
"symbol": "₹",
"code": "INR",
"symbol_with_code": "₹ (INR)",
"code_with_name": "INR, Indian Rupee"
},
{
"symbol": "₽",
"code": "RUB",
"symbol_with_code": "₽ (RUB)",
"code_with_name": "RUB, Russian Rouble"
},
{
"symbol": "Kč",
"code": "CZK",
"symbol_with_code": "Kč (CZK)",
"code_with_name": "CZK, Czech Koruna"
},
{
"symbol": "zł",
"code": "PLN",
"symbol_with_code": "zł (PLN)",
"code_with_name": "PLN, Polish Zloty"
},
{
"symbol": "Ft",
"code": "HUF",
"symbol_with_code": "Ft (HUF)",
"code_with_name": "HUF, Hungarian Forint"
},
{
"symbol": "฿",
"code": "THB",
"symbol_with_code": "฿ (THB)",
"code_with_name": "THB, Thailand Baht"
},
{
"symbol": "₩",
"code": "KRW",
"symbol_with_code": "₩ (KRW)",
"code_with_name": "KRW, Korean won republic"
},
{
"symbol": "د.ت",
"code": "TND",
"symbol_with_code": "د.ت (TND)",
"code_with_name": "TND, Tunisian Dinar"
},
{
"symbol": "лв.",
"code": "BGN",
"symbol_with_code": "лв. (BGN)",
"code_with_name": "BGN, Bulgarian Lev"
},
{
"symbol": "R$",
"code": "BRL",
"symbol_with_code": "R$ (BRL)",
"code_with_name": "BRL, Brazilian Real"
},
{
"symbol": "¥",
"code": "CNY",
"symbol_with_code": "¥ (CNY)",
"code_with_name": "CNY, Chinese Renminbi"
},
{
"symbol": "kn",
"code": "HRK",
"symbol_with_code": "kn (HRK)",
"code_with_name": "HRK, Croatian Kuna"
},
{
"symbol": "₪",
"code": "ILS",
"symbol_with_code": "₪ (ILS)",
"code_with_name": "ILS, Israeli Sheqel"
},
{
"symbol": "$",
"code": "MXN",
"symbol_with_code": "$ (MXN)",
"code_with_name": "MXN, Mexican Peso"
},
{
"symbol": "Lei",
"code": "RON",
"symbol_with_code": "Lei (RON)",
"code_with_name": "RON, Romanian Leu"
},
{
"symbol": "РСД",
"code": "RSD",
"symbol_with_code": "РСД (RSD)",
"code_with_name": "RSD, Serbia Dinar"
},
{
"symbol": "₺",
"code": "TRY",
"symbol_with_code": "₺ (TRY)",
"code_with_name": "TRY, Turkish Lira"
},
{
"symbol": "₸",
"code": "KZT",
"symbol_with_code": "₸ (KZT)",
"code_with_name": "KZT, Kazakstan Tenge"
}
],
"user": {
"id": 1,
"name": "Hack Häckermann",
"email": "buru@hack.com",
"ssn": "0000000-0",
"last_sign_in_at": "2023-11-08T13:30:21.395Z",
"sign_in_count": 513,
"roles": [
"beta_tester",
"manager",
"employee"
],
"forward_email_address": "0f0ded3d-54f7-4965-a64c-569a93396a90@0.0.0.0",
"send_reminder_emails": true,
"iban": null,
"bic": null,
"locale": "en",
"state": "accepted",
"memberships": 27,
"country_id": 12,
"unconfirmed_email": null,
"external_id": null,
"email_is_confirmed": true,
"on_vacation": false,
"settings": {
"id": 298,
"user_id": 1,
"company_id": 19,
"default_asset_account_id": 0,
"default_expense_account_id": 0,
"default_cost_centers": null,
"mileage_vehicle_category_id": null,
"allowance_country_category_id": 5,
"allowance_account_id": null,
"allowance_abroad_account_id": null,
"mileage_account_id": null,
"reimbursement_account_code": null,
"netsuite": null,
"ir_mileage_code": 0,
"ir_daily_allowance_code": 0,
"stand_in_approver_id": null,
"receipthero_connected": false,
"send_data_to_incomes_register": true,
"last_mileage_vehicle_id": null,
"password_auth_disabled": null
},
"companies_to_switch": [
{
"id": 21,
"name": "\"Create new company\" test",
"send_data_to_incomes_register": true,
"show_reward_form": false
},
{
"id": 2,
"name": "AltCorp",
"send_data_to_incomes_register": true,
"show_reward_form": true
},
{
"id": 27,
"name": "Bezala Gmbh",
"send_data_to_incomes_register": true,
"show_reward_form": false
},
{
"id": 1,
"name": "BuruCorp",
"send_data_to_incomes_register": true,
"show_reward_form": true
},
{
"id": 3,
"name": "Cost Centers Co",
"send_data_to_incomes_register": true,
"show_reward_form": true
},
{
"id": 22,
"name": "Digia ERP",
"send_data_to_incomes_register": true,
"show_reward_form": true
},
{
"id": 38,
"name": "Experimental Corp",
"send_data_to_incomes_register": true,
"show_reward_form": false
},
{
"id": 14,
"name": "Foreign Country Corp",
"send_data_to_incomes_register": true,
"show_reward_form": true
},
{
"id": 40,
"name": "IKEA",
"send_data_to_incomes_register": true,
"show_reward_form": false
},
{
"id": 48,
"name": "Magellan Oy",
"send_data_to_incomes_register": true,
"show_reward_form": false
},
{
"id": 52,
"name": "Mass Mileages Company",
"send_data_to_incomes_register": true,
"show_reward_form": false
},
{
"id": 6,
"name": "NeoCorp1",
"send_data_to_incomes_register": true,
"show_reward_form": true
},
{
"id": 8,
"name": "NeoCorp3",
"send_data_to_incomes_register": true,
"show_reward_form": true
},
{
"id": 46,
"name": "Norway AG",
"send_data_to_incomes_register": true,
"show_reward_form": false
},
{
"id": 9,
"name": "Procountor Corp",
"send_data_to_incomes_register": true,
"show_reward_form": true
},
{
"id": 20,
"name": "Reward Corp",
"send_data_to_incomes_register": true,
"show_reward_form": true
},
{
"id": 49,
"name": "Schema Change Co LTD",
"send_data_to_incomes_register": true,
"show_reward_form": false
},
{
"id": 47,
"name": "Spain & Co",
"send_data_to_incomes_register": true,
"show_reward_form": false
},
{
"id": 17,
"name": "Spreadsheet Corp",
"send_data_to_incomes_register": true,
"show_reward_form": true
},
{
"id": 11,
"name": "Swedish Corp",
"send_data_to_incomes_register": false,
"show_reward_form": true
},
{
"id": 16,
"name": "Swiss Company",
"send_data_to_incomes_register": false,
"show_reward_form": true
},
{
"id": 12,
"name": "US Division",
"send_data_to_incomes_register": false,
"show_reward_form": true
},
{
"id": 39,
"name": "Vana Tallinn",
"send_data_to_incomes_register": true,
"show_reward_form": false
},
{
"id": 50,
"name": "Viking Warband",
"send_data_to_incomes_register": true,
"show_reward_form": false
},
{
"id": 25,
"name": "gggfff",
"send_data_to_incomes_register": true,
"show_reward_form": false
},
{
"id": 10,
"name": "Рога и Копыта лтд.",
"send_data_to_incomes_register": true,
"show_reward_form": true
}
],
"company": {
"id": 19,
"name": "Japanese Zaibatsu",
"send_data_to_incomes_register": true,
"show_reward_form": true
},
"current_tax_card": {
"id": 48,
"user_id": 1,
"image": {
"url": "http://thinkpad.local:9000/rcam-test/tax_card/1/f09e967d-4496-4511-975e-96cf50c566ea.png/f09e967d-4496-4511-975e-96cf50c566ea.png?X-Amz-Expires=259200&X-Amz-Date=20231109T164414Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=BURULAPTOP%2F20231109%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=9a2a50ec1b55d4ec5bf036f57b9494266534f510de587f55288a96371dd2fee0"
},
"tax_percentage": "0.6",
"is_current": true
},
"approvers": [],
"country": {
"id": 12,
"name": "Estonia",
"currency": "EUR",
"currency_symbol": "€",
"default_tax_percentage": 0.0
},
"address": {
"street": "233",
"city": "New York",
"postal_code": "19212",
"country_id": 4,
"latitude": "40.709476",
"longitude": "-74.007296"
}
}
}