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": [
      {
        "amount_due": 100,
        "contact_id": "1234567890123456789",
        "currency": {
          "data": {
            "code": null,
            "exchange_rate": null,
            "is_base_currency": null,
            "name": null,
            "platform_id": null,
            "symbol": null,
            "updated_at": null
          }
        },
        "currency_id": null,
        "currency_rate": 1234,
        "document_number": "ROOTFI01",
        "documents": {
          "data": [
            {
              "document_type": "INVOICES",
              "document_type_id": "3770712000000080327",
              "document_uploaded": false,
              "download_link": "https://rootfi-dev.s3.amazonaws.com/3770712000000085065_3770712000000080327",
              "file_name": "Documents.csv",
              "file_size": 254.8828125,
              "file_type": "text/csv",
              "platform_id": "3770712000000085065_3770712000000080327",
              "updated_at": "2021-03-03T10:00:00.000Z"
            }
          ]
        },
        "due_date": "2021-09-28T15:00:00.000Z",
        "line_items": {
          "data": [
            {
              "account_id": null,
              "description": "Test Item",
              "item_id": "1234567890123456789",
              "line_item_type": "BILLS",
              "line_item_type_id": "1234567890123456789",
              "platform_id": "1234567890123456789",
              "quantity": 1,
              "sub_total": null,
              "tax_amount": 0,
              "tax_id": "1234567890123456789",
              "total_amount": 100,
              "total_discount": null,
              "tracking_category_ids": [],
              "unit_amount": 100,
              "updated_at": "2021-09-28T15:00:00.000Z"
            }
          ]
        },
        "memo": "Test Invoice",
        "payments": {
          "data": [
            {
              "account_id": "3770712000000000361",
              "amount": 150,
              "bill_id": "3770712000000085084",
              "contact_id": null,
              "currency": {
                "data": {
                  "code": "INR",
                  "exchange_rate": 0,
                  "is_base_currency": true,
                  "name": "Indian Rupee",
                  "platform_id": "3770712000000000099",
                  "symbol": "₹",
                  "updated_at": null
                }
              },
              "currency_id": "3770712000000000099",
              "currency_rate": 1,
              "document_number": "2",
              "memo": "Description?",
              "payment_date": "2023-02-03T00:00:00.000Z",
              "payment_id": "3770712000000106209",
              "payment_mode": "Cash",
              "platform_id": "3770712000000106211",
              "updated_at": null
            }
          ]
        },
        "platform_id": "1234567890123456789",
        "posted_date": "2021-09-28T15:00:00.000Z",
        "purchase_order_ids": [
          "1234567890123456789"
        ],
        "rootfi_company_id": 123456,
        "rootfi_created_at": "2021-09-28T15:00:00.000Z",
        "rootfi_id": 1234,
        "rootfi_integration_type": "ZOHO_BOOKS",
        "rootfi_organisation_id": 1,
        "rootfi_updated_at": "2021-09-28T15:00:00.000Z",
        "status": "DRAFT",
        "sub_total": 1123,
        "tax_amount": 0,
        "total_amount": 100,
        "total_discount": 234,
        "updated_at": "2021-09-28T15:00:00.000Z"
      }
    ],
    "total_count": 0
  },
  "request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b",
  "request_timestamp": "2021-09-28T15:00:00.000Z",
  "response_timestamp": "2021-09-28T15:00:00.000Z"
}

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

Authorizations

api_key
string
headerrequired

Body

application/json
filter
object
orderBy
object
skip
integer | null
take
integer | null

Response

200 - application/json
data
object
required
request_id
string
required

The unique ID of the request

request_timestamp
string
required

The time at which the request was received by the server

response_timestamp
string
required

The time at which the response was sent by the server