By sending the request, you will get a URL to upload the quotation corresponding to an RfQ.
This API is the equivalent of uploading a PDF file in the Quotation section of the frontend. Upon successful upload, you can call the Update RfQ API to set the RfQ status to QuotationAvailable.
Unless you change the status to QuotationAvailable, the PDF is still available internally, but (if the customer portal is available) the customer will not be notified and will not be able to download the PDF. This is consistent with the behavior of the quotation upload in the UI, where the status is not updated unless you click the 'Send to customer' button.
Uploading is a two-step process:
- Call this API to retrieve a URL to upload the file to.
- Upload the file contents to the retrieved URL using the
PUTmethod.- The
PUTcall must set thex-ms-blob-typeheader to the valueBlockBlob.
- The
See the help page for an explanation of when and how to use this API.
Filename including extension.
Note that this is the name of the file as the customer will be able to download it for the RfQ. This name does not have to be related to the name of the file whose contents you want to upload to the URL given in the response payload.
curl -i -X POST \
'https://api.luminovo.com/rfqs/{id}/quotation/upload' \
-H 'Accept: application/api.luminovo.quotation-upload-v1+json' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"filename": "example_quotation.pdf",
"replace_existing_quotation": true
}'{ "url": "https://lumiquoteprod.blob.core.windows.net/luminovo/quotation/ee824cad-d7a6-4f48-87dc-e8461a9201c4/example_quotation.pdf?sv=2018-11-09&ss=b&srt=o" }