DocumentsUpload a single document file as base64. The file name is subject to restrictions (supported extensions, maximum base64 content size and content type detected from the file name).

Upload a single document file as base64. The file name is subject to restrictions (supported extensions, maximum base64 content size and content type detected from the file name).

curl -X POST "https://api-gateway-prod-europe-west-1-7epuecvu.ew.gateway.dev/v3/unprocessed-documents/upload" \
  -H "Content-Type: application/json" \
  -H "api_key: YOUR_API_KEY" \
  -d '{
  "data": {
    "organizationId": "example_string",
    "fileName": "John Doe",
    "fileBase64": "example_string",
    "accountingSettings": {
      "numericCodeId": "example_string",
      "cashRegisterId": "example_string",
      "projectId": "example_string",
      "orderId": "example_string",
      "activityId": "example_string",
      "expenditureCenterId": "example_string",
      "accountingItemId": "example_string",
      "classificationVatId": "example_string",
      "accountingSoftwareAgendaId": "example_string",
      "debitAccountingAccountId": "example_string"
    }
  }
}'
{
  "data": {
    "organizationFileId": "example_string"
  },
  "success": true,
  "message": "example_string",
  "code": "APP_UNAUTHENTICATED"
}
POST
/v3/unprocessed-documents/upload
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: api_key)
api_keystring
Required

API key (sent in header)

Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Authentication

header
api_keystring
Required

API Key for authentication. Provide your API key in the header.

Body

application/json
dataobject

Responses

dataobject
successboolean
messagestring

optional message to help user understand error code

codestring
Allowed values:APP_UNAUTHENTICATEDAPP_INCORRECT_INPUT_DATASAVE_DATA_ERROR_CODE