- Unified bill properties: Essential bill information such as vendor, account, dates, currency, and amounts are standardized across different accounting platforms
- Status tracking: The model supports tracking the status of a bill, including draft, submitted, partially paid, paid, overdue, void, or unknown, for better bill management and reporting
- Relationship with other data models: The model allows for the inclusion of associated line items, bill payments, and purchase orders, providing a complete picture of each bill
- Currency conversion: The
currency_rateproperty allows for easy currency conversion between the payment currency and the base currency, ensuring accurate financial reporting and analysis
Attributes
Bill Attributes
| Property | Type | Description |
|---|---|---|
| rootfi_id | integer | Unique identifier assigned by Commenda for this bill |
| rootfi_created_at | string | Timestamp when this record was created in Commenda’s system (ISO 8601) |
| rootfi_updated_at | string | Timestamp when this record was last updated in Commenda’s system (ISO 8601) |
| rootfi_company_id | integer | Company identifier this bill belongs to within Commenda |
| platform_id | string | Unique identifier for this bill in the source accounting platform |
| platform_unique_id | string | Alternative unique identifier from the platform (some platforms provide multiple IDs) |
| contact_id | string | The contact ID of the bill |
| currency_id | string | The currency ID of the bill |
| document_number | string | The document number of the bill |
| posted_date | string | The posted date of the bill |
| due_date | string | The due date of the bill |
| status | enum | The status of the bill |
| total_discount | double | The total discount of the bill |
| sub_total | double | The sub total of the bill |
| tax_amount | double | The tax amount of the bill |
| total_amount | double | The total amount of the bill |
| amount_due | double | The amount due of the bill |
| memo | string | The memo or notes of the bill |
| updated_at | string | The date and time the bill was last updated |
| currency_rate | double | The currency rate of the bill |
| purchase_order_ids | array | The purchase order IDs associated with the bill |
| line_items | array | The line items of the bill |
Status Enum Values
| Value | Description |
|---|---|
draft | Bill is in draft status and has not been finalized |
submitted | Bill has been submitted but not yet paid |
partially_paid | Bill has received partial payment |
paid | Bill has been fully paid |
overdue | Bill has passed its due date without payment |
void | Bill has been voided or cancelled |
unknown | Status cannot be determined from the platform |
Expandable Attributes
Use theexpand query parameter to include related objects:
expand=currency- Includes full Currency object detailsexpand=line_items- Includes detailed LineItem objectsexpand=contact- Includes full Contact object detailsexpand=documents- Includes all Document objects attached to the billexpand=bill_payments- Includes all BillPayment objects associated with the bill
Properties Supported
| Property | Type | Description |
|---|---|---|
| platform_id | string | The Platform’s ID for the bill |
| contact_id | string | The contact ID of the bill |
| currency_id | string | The currency ID of the bill |
| document_number | string | The document number of the bill |
| posted_date | string | The posted date of the bill |
| due_date | string | The due date of the bill |
| status | enum | The status of the bill |
| total_discount | double | The total discount of the bill |
| sub_total | double | The sub total of the bill |
| tax_amount | double | The tax amount of the bill |
| total_amount | double | The total amount of the bill |
| amount_due | double | The amount due of the bill |
| memo | string | The memo or notes of the bill |
| currency_rate | double | The currency rate of the bill |
| purchase_order_ids | array | The purchase order IDs associated with the bill |
| line_items | array | The line items of the bill |
| updated_at | string | The date and time the bill was last updated |
Addresses
| Property | Type | Description |
|---|---|---|
| platform_id | string | Platform's ID for the address |
| type | enum | The type of address. Values are: BILLING, SHIPPING. |
| data_model | string | The 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_id | string | The unique identifier for the data model associated with this address |
| street | string | The street information of the address |
| locality | string | The locality or neighborhood information of the address |
| city | string | The city information of the address |
| state | string | The state or region information of the address |
| country | string | The country information of the address |
| pincode | string | The postal or zip code of the address |
| updated_at | date | The date and time at which the address information was last updated in the accounting platform |
Line Items
| Property | Type | Description |
|---|---|---|
| platform_id | string | Platform ID associated with this line item |
| item_id | string | The platform ID of the item associated with this line item |
| tax_id | string | The platform ID of the tax associated with this line item |
| account_id | string | The platform ID of the account associated with this line item |
| line_item_type | enum | The 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_id | string | The platform ID of the associated data model |
| description | string | The description for this line item |
| quantity | float | The quantity of the product/service for this line item |
| unit_amount | float | Price per unit for this line item |
| sub_total | float | The pre tax total value for this line item |
| tax_amount | float | The tax amount for this line item |
| total_amount | float | The total value of this line item |
| tracking_category_ids | object | The tracking category Ids associated with this line item |