Skip to main content

Upload file to order

POST 

/api/v1/order/:orderId/file

Upload file and store it under order id. File will be attached to order communication emails.

Request

Path Parameters

    orderId stringrequired

    id of order to attach file to

Query Parameters

    name string

    optional name of file. if not provided, name is derived from original file name of uploaded file

Body

    file binaryrequired

Responses

File successfully uploaded and saved

Schema

    id stringdeprecated

    identifier of file - deprecated - kept for backwards compatibility

    path string

    (unique) path of the file in storage

    url string

    absolute url where to get file content

    mediaLink stringdeprecated

    deprecated - use url instead

    contentType string

    mime content type of file

    size int64

    size of file in bytes

    created date-time

    when was file created

    updated date-time

    when was file updated

Loading...