Skip to main content

bidLeadTimeRisk

Requires permission biddesk:bid:read.

Compares each costed item's vendor lead time (quoted, and observed on past receipts; the longer counts) with the days left to the bid's required delivery date. Items with less slack than the cost model's buffer (default 14 days) are at risk, negative slack is late; worst first. Without a date it says so. Requires Bid Desk and permission to read bids.

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:

query BidLeadTimeRisk($bidId: ID!) {
bidLeadTimeRisk(bidId: $bidId) {
status
bufferDays
daysToDelivery
reason
requiredDeliveryAt
items {
status
basis
description
leadTimeDays
lineId
productId
}
}
}

Variables:

{
"bidId": "id"
}

Response:

{
"data": {
"bidLeadTimeRisk": {
"status": "AT_RISK",
"bufferDays": 0,
"daysToDelivery": 0,
"reason": "string",
"requiredDeliveryAt": "2025-01-15T00:00:00Z",
"items": [
{
"status": "AT_RISK",
"basis": "OBSERVED",
"description": "string",
"leadTimeDays": 0,
"lineId": "id",
"productId": "id"
}
]
}
}
}
bidLeadTimeRisk(
bidId: ID!
): BidLeadTimeRisk!

Arguments​

bidLeadTimeRisk.bidId ● ID! non-null scalar​

The bid.

Type​

BidLeadTimeRisk object​

Lead-time risk of a bid: each costed item's vendor lead time against the date the customer needs delivery, worst first. Advises only; no money.