Skip to main content
POST
Create Document
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. To Upload a file using Node JS SDK, you can use the following code:

Authorizations

api_key
string
header
required

Body

multipart/form-data
file
file
company_id
integer

The company ID of the document

document_type_id
string | null

The document type ID of the document

document_type
enum<string>

The document type of the document

Available options:
BILLS,
INVOICES,
BILL_CREDIT_NOTES,
INVOICE_CREDIT_NOTES,
EXPENSES,
PURCHASE_ORDERS,
SALES_ORDERS
base64_file
string | null

The base64 file of the document

file_name
string | null

The file name of the document

Response

data
accountingDocumentObject · object | null

The data of the created document

sync_id
string | null

The sync id of the request