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
| Header | Type | Required | Description |
|---|---|---|---|
| X-Api-Key | String | ✅ | Your API key for authentication |
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| CUSTOMER_ID | String | ✅ | Unique identifier of the customer |
| RFQ_ID | String | ✅ | Unique identifier of the RFQ |
Request Body
- Content-Type:
multipart/form-data - Field:
files(Array of files)
Accepted File Types:
| File Type | MIME Type |
|---|---|
| PNG | image/png |
| JPEG | image/jpeg |
| JPG | image/jpg |
application/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 Code | Error Message | Reason |
|---|---|---|
400 Bad Request | No files provided | No files were uploaded |
400 Bad Request | Invalid file type: {filename} | The file type is not in the accepted list |
400 Bad Request | File {filename} exceeds the maximum allowed size of 6MB | File size exceeds the allowed limit |
401 Unauthorized | Invalid API Key | API key is missing or incorrect |
404 Not Found | RFQ not found | The specified RFQ does not exist |