supplierScorecard
Requires an authenticated session.
Supplier scorecard over a date range. Org-wide figures: needs the analytics:organization:read permission, so users limited to their own records are refused. Needs the purchase orders feature on your plan.
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 SupplierScorecard($range: AnalyticsRangeInput!) {
supplierScorecard(range: $range) {
suppliers {
name
avgLeadTimeDays
fillRatePct
onTimePct
poCount
rejectionRatePct
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query SupplierScorecard($range: AnalyticsRangeInput!) {\n supplierScorecard(range: $range) {\n suppliers {\n name\n avgLeadTimeDays\n fillRatePct\n onTimePct\n poCount\n rejectionRatePct\n }\n }\n}",
"variables": {
"range": {
"from": "2025-01-15T00:00:00Z",
"to": "2025-01-15T00:00:00Z"
}
}
}
EOF
Variables:
{
"range": {
"from": "2025-01-15T00:00:00Z",
"to": "2025-01-15T00:00:00Z"
}
}
Response:
{
"data": {
"supplierScorecard": {
"suppliers": [
{
"name": "string",
"avgLeadTimeDays": 0,
"fillRatePct": 0,
"onTimePct": 0,
"poCount": 0,
"rejectionRatePct": 0
}
]
}
}
}
supplierScorecard(
range: AnalyticsRangeInput!
): SupplierScorecard!
Arguments
supplierScorecard.range ● AnalyticsRangeInput! non-null input
The date range and, optionally, the visibility scope.
Type
SupplierScorecard object
How suppliers performed.