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
Show child attributes
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