Skip to main content

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​

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
DOC_IDString✅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 CodeError MessageReason
400 Bad RequestError downloading fileThe requested file could not be retrieved
401 UnauthorizedInvalid API KeyAPI key is missing or incorrect
404 Not FoundRFQ or file not foundThe specified RFQ or file does not exist