Skip to main content
POST
cURL

Authorizations

api_key
string
header
required

Your Commenda Integrations API key, sent in the api_key header.

Path Parameters

companyId
number
required

Body

file
file

File to upload (multipart form field file).

document_type
string

Parent record type.

Example:

"INVOICE"

document_type_id
string

Platform ID of the parent record.

Example:

"inv_123"

base64_file
string

Base64-encoded file content, as an alternative to a multipart file.

file_name
string

File name, required when using base64_file.

Example:

"invoice.pdf"

Response

201 - application/json

The response is of type object.