# Add an attachment to a sales order **POST /salesorders/{id}/attachments** Add a new attachment to a specific sales order. The filename should be specified in the `Content-Disposition` header, and the `Content-Type` header must reflect the MIME type of the attachment being uploaded. The file itself should be included in the request body, and should be less than 4 MB in size. ## Servers - https://rest.api.24sevenoffice.com/v1: https://rest.api.24sevenoffice.com/v1 () ## Authentication methods - Tfso ## Parameters ### Headers - **Content-Disposition** (string) - **Content-Type** (string) The Content-Type for the attachment - **Authorization** (string) Authorization header ### Path parameters - **id** (integer(int32)) ### Body: application/pdf (string(binary)) string(binary) ## Responses ### 201 Newly created attachment #### Headers - **Access-Control-Allow-Origin** (string) - **Access-Control-Allow-Credentials** (string) - **X-Trace-Id** (string) #### Body: application/json (object) - **fileId** (string) The unique identifier for the file associated with the attachment. - **orderId** (integer) The unique identifier for the sales order to which the attachment belongs. - **fileName** (string) The name of the attached file. - **mediaType** (string) The media type (MIME type) of the attached file. - **size** (integer(int64)) The size of the attached file in bytes. - **timestamp** (string(date-time)) A timestamp for when the attachment was created, in ISO 8601 format. - **tags** (array[string]) Tags associated with the attachment for categorization or search purposes. ### 403 Order is already invoiced, cannot add attachments #### Headers - **Access-Control-Allow-Origin** (string) - **Access-Control-Allow-Credentials** (string) - **X-Trace-Id** (string) [Powered by Bump.sh](https://bump.sh)