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-KeyStringYour API key for authentication

Request Parameters

ParameterTypeRequiredDescription
CUSTOMER_IDStringUnique identifier of the customer
RFQ_IDStringUnique identifier of the RFQ
DOC_IDStringUnique 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