Skip to content
Main site Contact

RFQ

This page covers:

  • PUT /api/RFQ
  • GET /api/RFQ
  • DELETE /api/RFQ

Create a new RFQ from a file upload, or append chunks toward one RFQ upload.

ItemValue
MethodPUT
Path/api/RFQ
AuthUser bearer token
Content-Typeapplication/json
ResponseText response. Final response contains {"rfqId":"..."}. Intermediate chunk uploads return Chunk uploaded.
ParameterRequiredNotes
fileNameYesURL-encoded file name
customQuoteIdNoExternal quote identifier
rfqIdNoExisting RFQ ID if you want to control the ID
chunkNumNoChunk number, starting at 1
totalChunksNoTotal chunk count

The body is a JSON string whose value is the base64-encoded file bytes:

"BASE64_FILE_BYTES"
  • When chunkNum and totalChunks are omitted, the whole file is uploaded in one request.
  • When both are supplied and totalChunks > 1, the server appends chunks until the last chunk arrives.
  • Non-final chunks return Chunk uploaded.
  • The final chunk returns the normal RFQ response.
import base64
import json
import requests
with open("quote_input.pdf", "rb") as f:
body = json.dumps(base64.b64encode(f.read()).decode("ascii"))
resp = requests.put(
f"{server}/api/RFQ?fileName=quote_input.pdf&customQuoteId=EXT-12345",
headers={
"Authorization": f"Bearer {token}",
"Content-Type": "application/json",
},
data=body,
)
resp.raise_for_status()
print(resp.text)
PUT /api/RFQ?fileName=quote_input.pdf&customQuoteId=EXT-12345 HTTP/1.1
Host: your-server.example.com
Authorization: Bearer USER_BEARER_TOKEN
Content-Type: application/json
"BASE64_FILE_BYTES"

Fetch one RFQ by ID.

ItemValue
MethodGET
Path/api/RFQ
AuthUser bearer token
ResponseRFQ JSON or null
ParameterRequiredNotes
rfqIdYesRFQ ID
FieldMeaning
IdRFQ ID
UserIdOwning user
CompanyIdCompany context
SearchFileIdBase RFQ/search input file
StatusNumeric RFQ status
StatusNameHuman-readable status
CustomQuoteIdExternal quote ID if supplied
BaseFileNameBase uploaded file name
LinesRFQ line items and search results
{
"Id": "7e8f3aaf-8350-4b76-a4b2-4c778d4ebd33",
"UserId": "6a5b7d86-1c61-4e0c-9ef9-8d4d1a450f92",
"CompanyId": "24395dfe-7917-4976-a198-0fe3aa9a6a06",
"SearchFileId": "b5d3674c-488c-41cb-a9f7-58a42cac85dd",
"Status": 0,
"StatusName": "Saved",
"CustomQuoteId": "EXT-12345",
"BaseFileName": "quote_input.pdf",
"Lines": [
{
"LineNumber": "1",
"InputFID": "b5d3674c-488c-41cb-a9f7-58a42cac85dd",
"InputFilename": "quote_input.pdf",
"Results": []
}
]
}
Terminal window
curl -G "https://your-server.example.com/api/RFQ" \
-H "Authorization: Bearer USER_BEARER_TOKEN" \
--data-urlencode "rfqId=7e8f3aaf-8350-4b76-a4b2-4c778d4ebd33"

Delete one RFQ by ID.

ItemValue
MethodDELETE
Path/api/RFQ
AuthUser bearer token
ResponseBoolean
ParameterRequiredNotes
rfqIdYesRFQ ID
Terminal window
curl -X DELETE "https://your-server.example.com/api/RFQ?rfqId=7e8f3aaf-8350-4b76-a4b2-4c778d4ebd33" \
-H "Authorization: Bearer USER_BEARER_TOKEN"