Upload order proforma invoice file
POST/api/v1/order/:orderId/proforma-invoice
Upload proforma invoice file and store it under order id - max file size is 10 MB and max size of the whole request (all files plus headers etc) is 11 MB
Request
Path Parameters
id of order to attach proforma invoice to
- multipart/form-data
Body
Responses
- 201
- 400
- 401
- 403
- 409
- 413
File(s) successfully uploaded and saved
- application/json
- application/problem+json
- Schema
- Example (from schema)
Schema
identifier of file - deprecated - kept for backwards compatibility
(unique) path of the file in storage
absolute url where to get file content
deprecated - use url instead
mime content type of file
size of file in bytes
when was file created
when was file updated
{
"path": "string",
"url": "string",
"contentType": "string",
"size": 0,
"created": "2024-04-18T09:59:31.514Z",
"updated": "2024-04-18T09:59:31.514Z"
}
- Schema
- Example (from schema)
Schema
identifier of file - deprecated - kept for backwards compatibility
(unique) path of the file in storage
absolute url where to get file content
deprecated - use url instead
mime content type of file
size of file in bytes
when was file created
when was file updated
{
"path": "string",
"url": "string",
"contentType": "string",
"size": 0,
"created": "2024-04-18T09:59:31.514Z",
"updated": "2024-04-18T09:59:31.514Z"
}
Input data validation error - e.g. file empty or file too large
- application/problem+json
- Schema
- Example (from schema)
Schema
properties
object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Invalid API token provided.
- application/problem+json
- Schema
- Example (from schema)
Schema
properties
object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
AccessDeniedException
- */*
- Schema
- Example (from schema)
Schema
properties
object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Conflict
- */*
- Schema
- Example (from schema)
Schema
properties
object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Request payload too large
- */*
- Schema
- Example (from schema)
Schema
properties
object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}