Skip to main content
POST
Create Sales Order File

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

FlowAuthorization Code
Authorization URL
https://auth.jtl-cloud.com/oauth2/auth
Token URL
https://auth.jtl-cloud.com/oauth2/token

Headers

x-runas
string

The User-Id (int or uuid) on whose behalf the request is executed. Requires scope 'Application.RunAs'.

x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

Path Parameters

salesOrderId
integer<int32>
required

Body

application/json

The file to create.

Model Class: CreateFile

FileData
string<byte>
required

Base64 encoded data of the file.

FileDataType
string
required

Type of file.

Maximum string length: 2147483647
Example:

"png"

FileName
string
required

name of the file.

Maximum string length: 2147483647
Example:

"Attachment FileName"

Response

The created file.

Model Class: SalesOrderFile

Id
integer<int32>
required
SalesOrderId
integer<int32>
required
FileId
integer<int32>
required
FileDataType
string
required

Type of file.

Example:

"png"

Size
number<decimal>
required

Image size.

Example:

"TODO"

CreatedAt
string<date-time>
required

Date when the file was created in the system.

Example:

"TODO"

FileName
string
required

name of the file.

Example:

"Anhangdateiname"