POST
/
accounting
/
documents
curl --request POST \
  --url https://api.rootfi.dev/v3/accounting/documents \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '{
  "company_id": 123,
  "data": [
    {
      "document_type": "Example Document Type",
      "document_type_id": "123456",
      "document_uploaded": true,
      "file_name": "Example File Name",
      "file_size": "Example File Size",
      "file_type": "Example File Type",
      "updated_at": "2024-01-25T09:00:00Z"
    }
  ]
}'
{
  "data": {
    "document_type": "Example Document Type",
    "document_type_id": "123456",
    "document_uploaded": true,
    "file_name": "Example File Name",
    "file_size": "Example File Size",
    "file_type": "Example File Type",
    "platform_id": "123456",
    "rootfi_company_id": 456,
    "rootfi_created_at": "2024-01-25T09:00:00Z",
    "rootfi_id": 123,
    "rootfi_updated_at": "2024-01-25T09:00:00Z",
    "updated_at": "2024-01-25T09:00:00Z"
  }
}

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
company_id
integer
required

The ID of the company in the accounting platform

data
object[]
required

The data of the document to create

Response

200 - application/json
data
object
required