# Upload Files to Order This endpoint allows you to upload files or provide URLs associated with a specific order. The request should include either an array of files (file_list) or an array of URLs (urls). Endpoint: POST /orders/{orderId}/files Version: 1.0.0 Security: bearerAuth ## Path parameters: - `orderId` (integer, required) ID of the order to upload files to ## Request fields (multipart/form-data): - `file_list` (array) File list is a two-dimensional array, each element contains file and type - `file_list.file` (string, required) File, Max Size 10M - `file_list.type` (string) Type of order file document. Available file types: - DO: Delivery Order - DG form: Dangerous Goods Form - POD: Proof of Delivery - Packing List: Packing List Document - MBL: Master Bill of Lading - Telex: Telex Release - PU#: Pickup Number - MSDS: Material Safety Data Sheet - Payment Proof: Proof of Payment - Scale Ticket: Scale Ticket Document - SOC Return Guarantee Letter: SOC Return Guarantee Letter - Ingate EIR: Ingate Equipment Interchange Receipt - Proof of Terminal apt time: Proof of Terminal Appointment Time - Proof of Terminal pickup apt time: Proof of Terminal Pickup Appointment Time - Proof of Terminal return apt time: Proof of Terminal Return Appointment Time - Proof of Empty Returned: Proof of Empty Container Return - Vendor Invoice: Vendor Invoice Document - Arrival Notice: Arrival Notice Document - Other: Other Document Types Enum: "DO", "DG form", "POD", "Packing List", "MBL", "Telex", "PU#", "MSDS", "Payment Proof", "Scale Ticket", "SOC Return Guarantee Letter", "Ingate EIR", "Proof of Terminal apt time", "Proof of Terminal pickup apt time", "Proof of Terminal return apt time", "Proof of Empty Returned", "Vendor Invoice", "Arrival Notice", "Other" - `urls` (array) Urls is a two-dimensional array, each element contains url and type - `urls.url` (string, required) Available url ## Response 200 fields (application/json): - `data` (array) - `data.id` (integer) Document ID Example: 785 - `data.type` (string) Type of order file document. Available file types: - DO: Delivery Order - DG form: Dangerous Goods Form - POD: Proof of Delivery - Packing List: Packing List Document - MBL: Master Bill of Lading - Telex: Telex Release - PU#: Pickup Number - MSDS: Material Safety Data Sheet - Payment Proof: Proof of Payment - Scale Ticket: Scale Ticket Document - SOC Return Guarantee Letter: SOC Return Guarantee Letter - Ingate EIR: Ingate Equipment Interchange Receipt - Proof of Terminal apt time: Proof of Terminal Appointment Time - Proof of Terminal pickup apt time: Proof of Terminal Pickup Appointment Time - Proof of Terminal return apt time: Proof of Terminal Return Appointment Time - Proof of Empty Returned: Proof of Empty Container Return - Vendor Invoice: Vendor Invoice Document - Arrival Notice: Arrival Notice Document - Other: Other Document Types Enum: "DO", "DG form", "POD", "Packing List", "MBL", "Telex", "PU#", "MSDS", "Payment Proof", "Scale Ticket", "SOC Return Guarantee Letter", "Ingate EIR", "Proof of Terminal apt time", "Proof of Terminal pickup apt time", "Proof of Terminal return apt time", "Proof of Empty Returned", "Vendor Invoice", "Arrival Notice", "Other" - `data.is_customer_upload` (boolean) Whether document was uploaded by customer - `data.url` (string) Document URL Example: "https://api.drayeasy.com/api/v2/orders/13730/files/785" - `data.filename` (string) Document filename Example: "invoice.pdf" ## Response 400 fields (application/json): - `error` (string) Example: "VALIDATION" - `message` (string) Example: "Failed Validation" - `errors` (object) Example: {"urls.0":["The urls.0 is not reachable (HTTP 400)."],"file_list.0.file":["The file_list.0.file field is required when file list is present."],"file_list.0.type":["The selected file_list.0.type is invalid."]} ## Response 403 fields (application/json): - `error` (string) Example: "FORBIDDEN" - `errors` (array) - `message` (string) Example: "You do not have permission to download this file" ## Response 401 fields