Downloading RFQ and Quotation Attachments

Introduction:

As of September 24, 2024, the /attachments/rfq/{rfq_uuid}/ endpoint for retrieving attachments related to a Request for Quote (RFQ) is no longer supported. However, you can still download attachments using alternative API endpoints. This guide explains how to retrieve attachments for both RFQs and the quotations related to them.

Retrieving RFQ Attachments

To get the attachments for a specific RFQ, use the following endpoint:

GET RFQ Details:

GET https://staging.fairmarkit.com/services/self-service/api/v3/rfq/{uuid}/

This request will return detailed information about the RFQ, including a list of items and their attachments in the attachments field.

Example Payload:

{
  "uuid": "string",
  "title": "string",
  "status": "string",
  "items": [
    {
      "uuid": "string",
      "attachments": [
        {
          "file": "string",
          "orig_file_name": "string"
        }
      ]
    }
  ],
  "attachments": [
    {
      "file": "string",
      "orig_file_name": "string"
    }
  ]
}

Look for the attachments fields within the main RFQ object and the individual items objects. Each attachment contains a link to the file (file) and the original file name (orig_file_name).

Retrieving Quotations and Their Attachments

To retrieve attachments from the quotations associated with an RFQ, use the following endpoint:

GET Quotations List:

GET https://staging.fairmarkit.com/services/self-service/api/v3/rfq/{uuid}/quotations/

This will return details about each quotation, including the attachments field for each quotation item.

Example Payload:

{
  "results": [
    {
      "uuid": "string",
      "attachments": [
        {
          "file": "string",
          "orig_file_name": "string"
        }
      ]
    }
  ]
}

Summary:

  • RFQ Attachments: Use the /rfq/{uuid}/ endpoint to get attachments for the RFQ itself and its items.
  • Quotation Attachments: Use the /rfq/{uuid}/quotations/ endpoint to retrieve attachments from the associated quotations.

For further assistance or if you encounter any issues, feel free to reach out to our support team.