Download RFQ File
This endpoint allows customers to download an attached file from an RFQ.
Endpoint Details
- Method:
GET - URL:
/api/v2/customer/{CUSTOMER_ID}/rfq/{RFQ_ID}/files/{DOC_ID} - 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 |
| DOC_ID | String | ✅ | Unique identifier of the document to be downloaded |
Example Request Using curl
curl -X GET "https://api.olimpwarehousing.com/api/v2/customer/001U7000003PpXVIA0/rfq/RFQ12345/files/123" \
-H "X-Api-Key: YOUR_API_KEY_HERE" \
-o "downloaded_file.pdf"
Response
Success Response (200 OK)
- Returns the requested file as a binary stream.
Error Responses
| Status Code | Error Message | Reason |
|---|---|---|
400 Bad Request | Error downloading file | The requested file could not be retrieved |
401 Unauthorized | Invalid API Key | API key is missing or incorrect |
404 Not Found | RFQ or file not found | The specified RFQ or file does not exist |