Skip to main content
POST
/
api
/
documents
/
{document_id}
/
attachments
Add Attachment
curl --request POST \
  --url https://api.e-invoice.be/api/documents/{document_id}/attachments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "file_name": "<string>",
  "id": "<string>",
  "file_type": "application/pdf",
  "file_size": 0,
  "file_url": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

document_id
string
required

Body

multipart/form-data
file
file
required

Response

Successful Response

file_name
string
required
id
string
required
file_type
string
default:application/pdf
file_size
integer
default:0
file_url
string | null