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": [
{
"platform_id": "3770712000000085065_3770712000000080327",
"document_type_id": "3770712000000080327",
"file_name": "test.pdf",
"file_type": "application/pdf",
"file_size": 254.8828125,
"document_type": "INVOICES",
"document_uploaded": false,
"download_link": "https://Example.com/upload?file=test.pdf",
"updated_at": "2021-08-04T10:00:00+05:30"
}
],
"total_count": 1
},
"request_timestamp": "2021-09-28T15:00:00.000Z",
"response_timestamp": "2021-09-28T15:00:00.000Z",
"request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b"
}Retrieve Documents from the database based on the ID
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": [
{
"platform_id": "3770712000000085065_3770712000000080327",
"document_type_id": "3770712000000080327",
"file_name": "test.pdf",
"file_type": "application/pdf",
"file_size": 254.8828125,
"document_type": "INVOICES",
"document_uploaded": false,
"download_link": "https://Example.com/upload?file=test.pdf",
"updated_at": "2021-08-04T10:00:00+05:30"
}
],
"total_count": 1
},
"request_timestamp": "2021-09-28T15:00:00.000Z",
"response_timestamp": "2021-09-28T15:00:00.000Z",
"request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b"
}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"
}
}
}'
Show child attributes
asc, desc asc, desc asc, desc asc, desc asc, desc asc, desc asc, desc asc, desc Show child attributes
Show child attributes
An array of all the documents
Show child attributes
The ID that the accounting platform uses to identify this document
The ID that the accounting platform uses to identify this document type
The name of the file
The type of file
The size of the file
The type of document
The date the document was uploaded
The link to download the document
The date the document was last updated
The total number of documents
The time at which the request was received by the server
The time at which the response was sent by the server
The unique ID of the request