POST
/
accounting
/
bill_payments
/
all
curl --request POST \
  --url https://api.rootfi.dev/accounting/bill_payments/all \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '{
  "take": 10,
  "skip": 0,
  "orderBy": {
    "amount": "asc"
  },
  "filter": {
    "account_id": {
      "eq": "1234567890123456789"
    }
  }
}'
{
  "data": {
    "data": [
      {
        "account_id": "1234567890123456789",
        "amount": 123456,
        "bill": {
          "data": {
            "amount_due": 123456,
            "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": 123456,
            "document_number": "ROOTFI-123456",
            "due_date": "2021-09-28T15:00:00.000Z",
            "platform_id": "1234567890123456789",
            "posted_date": "2021-09-28T15:00:00.000Z",
            "purchase_order_ids": [
              "1234567890123456789"
            ],
            "status": "DRAFT",
            "sub_total": 123456,
            "tax_amount": 123456,
            "total_amount": 123456,
            "total_discount": 123456,
            "updated_at": "2021-09-28T15:00:00.000Z"
          }
        },
        "bill_id": "1234567890123456789",
        "contact_id": "1234567890123456789",
        "credit_note_id": "3770712000001669016",
        "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": 123456,
        "document_number": "ROOTFI-123456",
        "memo": "Test Memo",
        "payment_date": "2021-09-28T15:00:00.000Z",
        "payment_id": "1234567890123456789",
        "payment_mode": "Cash",
        "platform_id": "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",
        "updated_at": "2021-09-28T15:00:00.000Z"
      }
    ],
    "total_count": 0
  },
  "request_id": "b2e791f5-7384-4e4f-800f-5c032f6bb61b",
  "request_timestamp": "2021-09-28T15:00:00.000Z",
  "response_timestamp": "2021-09-28T15:00:00.000Z"
}

The Bill Payments Data Model is designed to standardise and simplify the management of bill payment information across various accounting platforms.

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