POST
/
accounting
/
invoices
/
all
curl --request POST \
  --url https://api.rootfi.dev/accounting/invoices/all \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '{
  "take": 10,
  "skip": 0,
  "orderBy": {
    "contact_id": "asc"
  },
  "filter": {
    "status": {
      "eq": "PAID"
    }
  }
}'
{
  "data": {
    "data": [
      {
        "amount_due": 0,
        "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": null,
        "document_number": "INVT136",
        "documents": {
          "data": [
            {
              "document_type": "Invoices",
              "document_type_id": "3770712000000080288",
              "document_uploaded": false,
              "download_link": "https://books.zoho.com/api/v3/documents/3770712000000203032_3770712000000080288",
              "file_name": "sample_upload.xlsx",
              "file_size": 6019.53,
              "file_type": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
              "platform_id": "3770712000000203032_3770712000000080288",
              "updated_at": "2022-09-28T00:00:00.000Z"
            }
          ]
        },
        "due_date": "2024-03-19T00:00:00.000Z",
        "line_items": {
          "data": [
            {
              "account_id": null,
              "description": "Item 111 testtt",
              "item_id": "19",
              "line_item_type": "INVOICES",
              "line_item_type_id": "793",
              "platform_id": "1_793",
              "quantity": 10,
              "sub_total": null,
              "tax_amount": null,
              "tax_id": "7",
              "total_amount": 200,
              "total_discount": null,
              "tracking_category_ids": [
                "5000000000000279513"
              ],
              "unit_amount": 20,
              "updated_at": null
            }
          ]
        },
        "memo": "Test Invoice",
        "payments": {
          "data": [
            {
              "account_id": "3770712000000000388",
              "amount": 120,
              "contact_id": "3770712000000080069",
              "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": "AO-000001",
              "invoice_id": "3770712000000080288",
              "memo": null,
              "payment_date": "2022-10-21T00:00:00.000Z",
              "payment_id": "3770712000000080513",
              "payment_mode": "Cash",
              "platform_id": "3770712000000080515",
              "updated_at": null
            }
          ]
        },
        "platform_id": "1234567890123456789",
        "posted_date": "2023-03-17T00:00:00.000Z",
        "rootfi_company_id": 1760,
        "rootfi_created_at": "2023-10-27T05:05:28.551Z",
        "rootfi_id": 1395686,
        "rootfi_integration_type": "ZOHO_BOOKS",
        "rootfi_organisation_id": 1,
        "rootfi_updated_at": "2023-10-27T05:05:28.522Z",
        "sales_order_ids": null,
        "status": "PAID",
        "sub_total": 200,
        "tax_amount": 19,
        "total_amount": 219,
        "total_discount": null,
        "updated_at": "2023-10-26T00:00:00.000Z"
      }
    ],
    "total_count": 1
  },
  "request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b",
  "request_timestamp": "2023-10-27T05:05:28.522Z",
  "response_timestamp": "2023-10-27T05:05:28.522Z"
}

An invoice is an itemized record of goods sold or services provided to a customer.

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