POST
/
accounting
/
documents
/
all
curl --request POST \
  --url https://api.rootfi.dev/accounting/documents/all \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '{
  "take": 10,
  "skip": 0,
  "orderBy": {
    "file_name": "test.pdf"
  },
  "filter": {
    "file_type": {
      "eq": "application/pdf"
    }
  }
}'
{
  "data": {
    "data": [
      {
        "document_type": "INVOICES",
        "document_type_id": "3770712000000080327",
        "document_uploaded": false,
        "download_link": "https://Example.com/upload?file=test.pdf",
        "file_name": "test.pdf",
        "file_size": 254.8828125,
        "file_type": "application/pdf",
        "platform_id": "3770712000000085065_3770712000000080327",
        "updated_at": "2021-08-04T10:00:00+05:30"
      }
    ],
    "total_count": 1
  },
  "request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b",
  "request_timestamp": "2021-09-28T15:00:00.000Z",
  "response_timestamp": "2021-09-28T15:00:00.000Z"
}

The Documents Data Model simplifies the handling of document documents across various accounting platforms, providing a standardised approach to accessing and managing document-related information.

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