GET
/
accounting
/
bills
curl --request GET \
  --url https://api.rootfi.dev/v3/accounting/bills \
  --header 'api_key: <api-key>'
{
  "data": [
    {
      "amount_due": 1100,
      "contact_id": "123456",
      "currency_id": "123456",
      "currency_rate": 1,
      "document_number": "123456",
      "due_date": "2024-01-25T09:00:00Z",
      "line_items": [
        {
          "account_id": "123456",
          "description": "This is a description",
          "item_id": "123456",
          "line_item_type": "INVOICES",
          "line_item_type_id": "123456",
          "platform_id": "123456",
          "quantity": 1,
          "rootfi_id": 157,
          "sub_total": 100,
          "tax_amount": 100,
          "tax_id": "123456",
          "total_amount": 100,
          "total_discount": 100,
          "tracking_category_ids": [
            "123456"
          ],
          "unit_amount": 100,
          "updated_at": "2024-01-22T05:07:31.000Z"
        }
      ],
      "memo": "Example Memo",
      "platform_id": "123456",
      "posted_date": "2024-01-25T09:00:00Z",
      "purchase_order_ids": [
        "123456"
      ],
      "rootfi_company_id": 456,
      "rootfi_created_at": "2024-01-25T09:00:00Z",
      "rootfi_id": 123,
      "rootfi_updated_at": "2024-01-25T09:00:00Z",
      "status": "Example Status",
      "sub_total": 1000,
      "tax_amount": 100,
      "total_amount": 1100,
      "total_discount": 100,
      "updated_at": "2024-01-25T09:00:00Z"
    }
  ],
  "next": "eyJyb291ZmlfaWQiOjQ0MDA2MX0=",
  "prev": "eyJyb290ZmlfaWQiOjQ0MDA2MX0=",
  "total_count": 123
}

A Bills record of goods or services purchased from a vendor.

Authorizations

api_key
string
headerrequired

Query Parameters

limit
integer | null

The number of objects you want to retrieve

next
string | null

The next page of objects to retrieve

prev
string | null

The previous page of objects to retrieve

expand
string | null

Comma separated fields to expand. Supported values are currency, line_items, contact, documents, bill_payments

select
string | null

Comma separated fields to select. Supported values are raw_data, data_hash

rootfi_company_id[eq]
integer | null

Filter by rootfi_company_id

return_count
boolean | null

Return the count of the objects

sort[rootfi_created_at]
enum<string>

Sort by rootfi_created_at

Available options:
ASC,
DESC
sort[rootfi_updated_at]
enum<string>

Sort by rootfi_updated_at

Available options:
ASC,
DESC

Response

200 - application/json
next
string | null

The next page of objects to retrieve

prev
string | null

The previous page of objects to retrieve

total_count
integer | null

The total count of the objects

data
object[]
required