Skip to main content
POST
Import Document

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

type
string
default:purchase

Role of the document: purchase (default), sale or other. purchase and sale are analysed automatically; other is stored as-is, without analysis.

Body

multipart/form-data
file
file
required

The file to import. Allowed extensions: .pdf, .xml, .jpg, .jpeg, .png (max 10 MB).

Response

Successful Response

Identifier of a freshly imported document.

Nothing else is returned: at creation every other field still holds its default value (no type, no amounts, no third party) — they are filled by the asynchronous chain. Read the document itself with GET /documents/{id} to follow its enrichment.

id
string
required

Opaque unique identifier of the created document.