bidCostOutliers
Requires permission biddesk:cost_sheet:read.
Compares each item line of a cost sheet with what the same item cost before (other bids' approved sheets, imported past bids, matched actual purchases; one year; same unit and currency). A line beyond 3 interquartile ranges is flagged high or low; fewer than 5 past costs says so. Requires Bid Desk, permission to read cost sheets and to view costs.
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
query BidCostOutliers($costSheetId: ID!) {
bidCostOutliers(costSheetId: $costSheetId) {
status
actualCount
bidCount
currency
deviationPct
importedCount
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query BidCostOutliers($costSheetId: ID!) {\n bidCostOutliers(costSheetId: $costSheetId) {\n status\n actualCount\n bidCount\n currency\n deviationPct\n importedCount\n }\n}",
"variables": {
"costSheetId": "id"
}
}
EOF
Variables:
{
"costSheetId": "id"
}
Response:
{
"data": {
"bidCostOutliers": [
{
"status": "INSUFFICIENT_HISTORY",
"actualCount": 0,
"bidCount": 0,
"currency": "string",
"deviationPct": "string",
"importedCount": 0
}
]
}
}
bidCostOutliers(
costSheetId: ID!
): [BidCostOutlier!]!
Arguments
bidCostOutliers.costSheetId ● ID! non-null scalar
The cost sheet.
Type
BidCostOutlier object
A cost line compared with past costs of the same item in the same unit and currency. The quartiles, fences and deviation are costs: null without permission to view costs. Advises only; nothing here changes a cost or a price.