matchBidActuals
Requires permission biddesk:cost_sheet:edit.
Links the purchase and receipt lines of a handed-over bid's sales order to the cost lines of its approved sheet. A source links only to a cost line of the same product with exactly that quantity left; a posted receipt replaces its purchase-order line; a link a person removed is never made again. Safe to run again. Refused with ACTUALS_NO_HANDOVER or ACTUALS_NO_SALES_ORDER. Requires Bid Desk, permission to edit 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
mutation MatchBidActuals($bidId: ID!) {
matchBidActuals(bidId: $bidId) {
linked
sourceLineCount
unlinked
unmatchedCount
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation MatchBidActuals($bidId: ID!) {\n matchBidActuals(bidId: $bidId) {\n linked\n sourceLineCount\n unlinked\n unmatchedCount\n }\n}",
"variables": {
"bidId": "id"
}
}
EOF
Variables:
{
"bidId": "id"
}
Response:
{
"data": {
"matchBidActuals": {
"linked": 0,
"sourceLineCount": 0,
"unlinked": 0,
"unmatchedCount": 0
}
}
}
matchBidActuals(
bidId: ID!
): BidActualsMatchResult!
Arguments
matchBidActuals.bidId ● ID! non-null scalar
The handed-over won bid.
Type
BidActualsMatchResult object
What one matching run did.