setBidPricingTerms
Requires permission biddesk:proposal:edit.
Sets how a bid is priced: cost-plus with a markup, a target price or a competitive price, with the reason. Choosing or changing the mode is logged as a bid decision. Changes no cost sheet and no proposal: the next "Refresh from the bid" prices the proposal with these terms. Needs permission to view margins. Refused with PRICING_TERMS_INVALID, PRICING_TERMS_VERSION_REQUIRED or VERSION_CONFLICT. Requires Bid Desk and permission to edit proposals.
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 SetBidPricingTerms($input: SetBidPricingTermsInput!) {
setBidPricingTerms(input: $input) {
id
bidId
competitivePrice
markupPct
mode
reason
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation SetBidPricingTerms($input: SetBidPricingTermsInput!) {\n setBidPricingTerms(input: $input) {\n id\n bidId\n competitivePrice\n markupPct\n mode\n reason\n }\n}",
"variables": {
"input": {
"bidId": "id",
"mode": "COMPETITIVE",
"reason": "string"
}
}
}
EOF
Variables:
{
"input": {
"bidId": "id",
"mode": "COMPETITIVE",
"reason": "string"
}
}
Response:
{
"data": {
"setBidPricingTerms": {
"id": "id",
"bidId": "id",
"competitivePrice": "string",
"markupPct": "string",
"mode": "COMPETITIVE",
"reason": "string"
}
}
}
setBidPricingTerms(
input: SetBidPricingTermsInput!
): BidPricingTerms!
Arguments
setBidPricingTerms.input ● SetBidPricingTermsInput! non-null input
The bid, the terms' version, the mode, its value and why.
Type
BidPricingTerms object
How a bid is priced, and why: cost-plus with a markup, a target price or a competitive price. Exactly one of markupPct, targetPrice and competitivePrice is set, per mode.