General
Server Side SDKs
Core API
- Companies
- Invite Links
- Integrations
- Sync
- Jobs
- Passthrough
Unified API
- Accounting
- Accounts
- Bank Accounts
- Bank Transactions
- Bills
- Bill Payments
- Bill Credit Notes
- Contacts
- Company Info
- Currencies
- Documents
- Expenses
- Invoice Credit Notes
- Invoices
- Invoice Payments
- Items
- Journal Entries
- Purchase Orders
- Sales Orders
- Goods Receipt Notes
- Projects
- Tax Rates
- Tracking Categories
- Balance Sheet
- Cash Flow Statements
- Income Statements
Bills
Get All Bills
List all Bills for a company ID
POST
/
accounting
/
bills
/
all
curl --request POST \
--url https://api.rootfi.dev/accounting/bills/all \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"take": 10,
"skip": 0,
"orderBy": {
"total_amount": "asc"
},
"filter": {
"amount_due": {
"gt": 4000
}
}
}'
{
"data": {
"data": [
{
"rootfi_id": 1234,
"rootfi_company_id": 123456,
"rootfi_organisation_id": 1,
"rootfi_integration_type": "ZOHO_BOOKS",
"rootfi_updated_at": "2021-09-28T15:00:00.000Z",
"rootfi_created_at": "2021-09-28T15:00:00.000Z",
"platform_id": "1234567890123456789",
"contact_id": "1234567890123456789",
"currency_id": null,
"document_number": "ROOTFI01",
"posted_date": "2021-09-28T15:00:00.000Z",
"due_date": "2021-09-28T15:00:00.000Z",
"memo": "Test Invoice",
"currency_rate": 1234,
"status": "DRAFT",
"total_amount": 100,
"sub_total": 1123,
"total_discount": 234,
"tax_amount": 0,
"amount_due": 100,
"purchase_order_ids": [
"1234567890123456789"
],
"updated_at": "2021-09-28T15:00:00.000Z",
"currency": {
"data": {
"platform_id": null,
"name": null,
"code": null,
"symbol": null,
"is_base_currency": null,
"exchange_rate": null,
"updated_at": null
}
},
"line_items": {
"data": [
{
"platform_id": "1234567890123456789",
"line_item_type": "BILLS",
"line_item_type_id": "1234567890123456789",
"tracking_category_ids": [],
"item_id": "1234567890123456789",
"tax_id": "1234567890123456789",
"account_id": null,
"description": "Test Item",
"quantity": 1,
"unit_amount": 100,
"total_amount": 100,
"sub_total": null,
"tax_amount": 0,
"total_discount": null,
"updated_at": "2021-09-28T15:00:00.000Z"
}
]
},
"documents": {
"data": [
{
"platform_id": "3770712000000085065_3770712000000080327",
"file_name": "Documents.csv",
"file_type": "text/csv",
"file_size": 254.8828125,
"document_type_id": "3770712000000080327",
"document_type": "INVOICES",
"document_uploaded": false,
"download_link": "https://rootfi-dev.s3.amazonaws.com/3770712000000085065_3770712000000080327",
"updated_at": "2021-03-03T10:00:00.000Z"
}
]
},
"payments": {
"data": [
{
"platform_id": "3770712000000106211",
"payment_id": "3770712000000106209",
"bill_id": "3770712000000085084",
"contact_id": null,
"account_id": "3770712000000000361",
"amount": 150,
"payment_date": "2023-02-03T00:00:00.000Z",
"payment_mode": "Cash",
"currency_id": "3770712000000000099",
"currency": {
"data": {
"platform_id": "3770712000000000099",
"name": "Indian Rupee",
"code": "INR",
"symbol": "₹",
"is_base_currency": true,
"exchange_rate": 0,
"updated_at": null
}
},
"currency_rate": 1,
"memo": "Description?",
"document_number": "2",
"updated_at": null
}
]
}
}
],
"total_count": 0
},
"request_timestamp": "2021-09-28T15:00:00.000Z",
"response_timestamp": "2021-09-28T15:00:00.000Z",
"request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b"
}
A Bills record of goods or services purchased from a vendor.
curl --request POST \
--url https://api.rootfi.dev/accounting/bills/all \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"take": 10,
"skip": 0,
"orderBy": {
"total_amount": "asc"
},
"filter": {
"amount_due": {
"gt": 4000
}
}
}'
Authorizations
Body
application/json
Response
200 - application/json
The response is of type object
.
curl --request POST \
--url https://api.rootfi.dev/accounting/bills/all \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"take": 10,
"skip": 0,
"orderBy": {
"total_amount": "asc"
},
"filter": {
"amount_due": {
"gt": 4000
}
}
}'
{
"data": {
"data": [
{
"rootfi_id": 1234,
"rootfi_company_id": 123456,
"rootfi_organisation_id": 1,
"rootfi_integration_type": "ZOHO_BOOKS",
"rootfi_updated_at": "2021-09-28T15:00:00.000Z",
"rootfi_created_at": "2021-09-28T15:00:00.000Z",
"platform_id": "1234567890123456789",
"contact_id": "1234567890123456789",
"currency_id": null,
"document_number": "ROOTFI01",
"posted_date": "2021-09-28T15:00:00.000Z",
"due_date": "2021-09-28T15:00:00.000Z",
"memo": "Test Invoice",
"currency_rate": 1234,
"status": "DRAFT",
"total_amount": 100,
"sub_total": 1123,
"total_discount": 234,
"tax_amount": 0,
"amount_due": 100,
"purchase_order_ids": [
"1234567890123456789"
],
"updated_at": "2021-09-28T15:00:00.000Z",
"currency": {
"data": {
"platform_id": null,
"name": null,
"code": null,
"symbol": null,
"is_base_currency": null,
"exchange_rate": null,
"updated_at": null
}
},
"line_items": {
"data": [
{
"platform_id": "1234567890123456789",
"line_item_type": "BILLS",
"line_item_type_id": "1234567890123456789",
"tracking_category_ids": [],
"item_id": "1234567890123456789",
"tax_id": "1234567890123456789",
"account_id": null,
"description": "Test Item",
"quantity": 1,
"unit_amount": 100,
"total_amount": 100,
"sub_total": null,
"tax_amount": 0,
"total_discount": null,
"updated_at": "2021-09-28T15:00:00.000Z"
}
]
},
"documents": {
"data": [
{
"platform_id": "3770712000000085065_3770712000000080327",
"file_name": "Documents.csv",
"file_type": "text/csv",
"file_size": 254.8828125,
"document_type_id": "3770712000000080327",
"document_type": "INVOICES",
"document_uploaded": false,
"download_link": "https://rootfi-dev.s3.amazonaws.com/3770712000000085065_3770712000000080327",
"updated_at": "2021-03-03T10:00:00.000Z"
}
]
},
"payments": {
"data": [
{
"platform_id": "3770712000000106211",
"payment_id": "3770712000000106209",
"bill_id": "3770712000000085084",
"contact_id": null,
"account_id": "3770712000000000361",
"amount": 150,
"payment_date": "2023-02-03T00:00:00.000Z",
"payment_mode": "Cash",
"currency_id": "3770712000000000099",
"currency": {
"data": {
"platform_id": "3770712000000000099",
"name": "Indian Rupee",
"code": "INR",
"symbol": "₹",
"is_base_currency": true,
"exchange_rate": 0,
"updated_at": null
}
},
"currency_rate": 1,
"memo": "Description?",
"document_number": "2",
"updated_at": null
}
]
}
}
],
"total_count": 0
},
"request_timestamp": "2021-09-28T15:00:00.000Z",
"response_timestamp": "2021-09-28T15:00:00.000Z",
"request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b"
}