Skip to main content

Upload Files to RFQ

This endpoint allows customers to attach supporting documents to an RFQ.

Endpoint Details​

  • Method: POST
  • URL: /api/v2/customer/{CUSTOMER_ID}/rfq/{RFQ_ID}/files
  • Authentication: Requires an API Key

Headers​

HeaderTypeRequiredDescription
X-Api-KeyString✅Your API key for authentication

Request Parameters​

ParameterTypeRequiredDescription
CUSTOMER_IDString✅Unique identifier of the customer
RFQ_IDString✅Unique identifier of the RFQ

Request Body​

  • Content-Type: multipart/form-data
  • Field: files (Array of files)

Accepted File Types:​

File TypeMIME Type
PNGimage/png
JPEGimage/jpeg
JPGimage/jpg
PDFapplication/pdf
Excel (XLSX)application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Excel (XLS)application/vnd.ms-excel
Word (DOCX)application/vnd.openxmlformats-officedocument.wordprocessingml.document
Word (DOC)application/msword
PowerPoint (PPTX)application/vnd.openxmlformats-officedocument.presentationml.presentation
PowerPoint (PPT)application/vnd.ms-powerpoint

✅ Maximum File Size:

  • Each file must not exceed 6MB (6000KB).

Example Request Using curl​

curl -X POST "https://api.olimpwarehousing.com/api/v2/customer/001U7000003PpXVIA0/rfq/RFQ12345/files" \
-H "X-Api-Key: YOUR_API_KEY_HERE" \
-H "Content-Type: multipart/form-data" \
-F "files=@/path/to/document.pdf" \
-F "files=@/path/to/image.png"

Response​

Success Response (201 Created)​

{
"message": "Files attached successfully"
}

Error Responses​

Status CodeError MessageReason
400 Bad RequestNo files providedNo files were uploaded
400 Bad RequestInvalid file type: {filename}The file type is not in the accepted list
400 Bad RequestFile {filename} exceeds the maximum allowed size of 6MBFile size exceeds the allowed limit
401 UnauthorizedInvalid API KeyAPI key is missing or incorrect
404 Not FoundRFQ not foundThe specified RFQ does not exist