The Expenses Data Model is designed to streamline the management and retrieval of expense-related information across various accounting platforms.

  • Unified expense properties: The model unifies essential expense information, including document numbers, posted dates, payment modes, and currency details, facilitating consistent and accurate expense tracking.
  • Contact and account relationships: Expenses can be easily linked to specific contacts and accounts using their respective platform IDs, allowing for efficient organisation and reporting.
  • Line item support: The inclusion of line items within the expense data model enables more granular and detailed expense management, as well as the ability to track individual components of an expense.
  • Currency conversion: The currency_rate property supports multi-currency scenarios by providing the conversion rate between the expense currency and the base currency, ensuring accurate financial reporting across various currencies.

Properties Supported

PropertyTypeDescription
platform_idstringThe Platform’s ID of the expenses
contact_idstringPlatform ID of the contact to which this expense belongs
account_idstringPlatform ID of the account to which this expense belongs
currency_idstringPlatform ID of the currency for the expense
document_numberstringReference/Document number of the expense
posted_datedateDate of the expense as recorded by the accounting platform
payment_modestringThe payment mode from which the payment was made
currency_ratefloatRate between the currency of the payment and the base currency
total_amountfloatTotal value of the expense
sub_totalfloatTotal pre tax value of the expense
tax_amountfloatTotal tax amount levied on the expense
total_discountfloatTotal value of discounts applied to the expense
memostringDescription of the expense
updated_atdateThe date at which the expense was updated on the accounting platform

Expandable Attributes

You can expand the following attributes to get the related data

PropertyData ModelDescription
contactContactsThe contact that made the expense
accountAccountsThe account associated to the expense
currencyCurrenciesThe currency of the expense
documentsDocumentsThe documents attached to the expense
addressesAddressesThe addresses associated with the expense
line_itemsLine ItemsThe line items associated with the expense

Addresses

PropertyTypeDescription
platform_idstringPlatform's ID for the address
typeenumThe type of address. Values are: BILLING, SHIPPING.
data_modelstringThe data model to which this address is linked. Values are COMPANY_INFO, CONTACTS, INVOICES, BILLS, EXPENSES, BILL_CREDIT_NOTES, INVOICE_CREDIT_NOTES, SALES_ORDERS, PURCHASE_ORDERS
data_model_idstringThe unique identifier for the data model associated with this address
streetstringThe street information of the address
localitystringThe locality or neighborhood information of the address
citystringThe city information of the address
statestringThe state or region information of the address
countrystringThe country information of the address
pincodestringThe postal or zip code of the address
updated_atdateThe date and time at which the address information was last updated in the accounting platform

Line Items

PropertyTypeDescription
platform_idstringPlatform ID associated with this line item
item_idstringThe platform ID of the item associated with this line item
tax_idstringThe platform ID of the tax associated with this line item
account_idstringThe platform ID of the account associated with this line item
line_item_typeenumThe data model linked to the line item. Values are: BILLS, INVOICES, INVOICE_CREDIT_NOTES, BILL_CREDIT_NOTES, EXPENSES, PURCHASE_ORDERS,SALES_ORDERS,GOODS_RECEIPT_NOTES
line_item_type_idstringThe platform ID of the associated data model
descriptionstringThe description for this line item
quantityfloatThe quantity of the product/service for this line item
unit_amountfloatPrice per unit for this line item
sub_totalfloatThe pre tax total value for this line item
tax_amountfloatThe tax amount for this line item
total_amountfloatThe total value of this line item
tracking_category_idsobjectThe tracking category Ids associated with this line item

Line Items Expandable Attributes

You can expand the following attributes to get the related line item data

PropertyData ModelDescription
itemItemsThe item associated with this line item
tax_rateTax RatesThe tax associated with this line item
accountAccountsThe account associated to the invoice