convertBidThreadToPriceRequest
Requires permission biddesk:cost_sheet:edit.
Drafts a price request to vendors from a bid thread; nothing is sent, and the thread then lists it. On a cost line thread the line's item and quantity fill what is not given; on any other thread the item, its name and the quantity must be given, else PRICE_REQUEST_ITEM_REQUIRED. Only the bid's members can convert its threads. Requires Bid Desk. Requires permission to edit cost sheets.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation ConvertBidThreadToPriceRequest($input: ConvertBidThreadToPriceRequestInput!) {
convertBidThreadToPriceRequest(input: $input) {
id
number
status
bidId
chosenVendorId
closedAt
vendors {
id
fileName
vendorName
status
answeredAt
contactEmail
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation ConvertBidThreadToPriceRequest($input: ConvertBidThreadToPriceRequestInput!) {\n convertBidThreadToPriceRequest(input: $input) {\n id\n number\n status\n bidId\n chosenVendorId\n closedAt\n vendors {\n id\n fileName\n vendorName\n status\n answeredAt\n contactEmail\n }\n }\n}",
"variables": {
"input": {
"dueAt": "2025-01-15T00:00:00Z",
"threadId": "id",
"vendors": [
{
"contactEmail": "string",
"vendorPartnerId": "id"
}
]
}
}
}
EOF
Variables:
{
"input": {
"dueAt": "2025-01-15T00:00:00Z",
"threadId": "id",
"vendors": [
{
"contactEmail": "string",
"vendorPartnerId": "id"
}
]
}
}
Response:
{
"data": {
"convertBidThreadToPriceRequest": {
"id": "id",
"number": "string",
"status": "CANCELLED",
"bidId": "id",
"chosenVendorId": "id",
"closedAt": "2025-01-15T00:00:00Z",
"vendors": [
{
"id": "id",
"fileName": "string",
"vendorName": "string",
"status": "ANSWERED",
"answeredAt": "2025-01-15T00:00:00Z",
"contactEmail": "string"
}
]
}
}
}
convertBidThreadToPriceRequest(
input: ConvertBidThreadToPriceRequestInput!
): BidPriceRequest!
Arguments
convertBidThreadToPriceRequest.input ● ConvertBidThreadToPriceRequestInput! non-null input
The thread, the vendors, the reply-by date and the item.
Type
BidPriceRequest object
A request to vendors to quote an item, made from a bid. A draft sends nothing.