customerAcceptBidProposal
Requires a customer (portal or buyer app) session.
Accept the current proposal revision: accepts its quote exactly as accepting a quote does, and tells the bid team. Errors: PROPOSAL_REPLACED (a newer revision replaced it), QUOTE_NOT_ACCEPTABLE, QUOTE_EXPIRED, QUOTE_VERSION_CONFLICT, PO_NUMBER_TOO_LONG.
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 CustomerAcceptBidProposal($revisionId: ID!) {
customerAcceptBidProposal(revisionId: $revisionId) {
bidTitle
changedSections
current
documents
quoteStatus
quoteVersion
total {
amount
currency
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation CustomerAcceptBidProposal($revisionId: ID!) {\n customerAcceptBidProposal(revisionId: $revisionId) {\n bidTitle\n changedSections\n current\n documents\n quoteStatus\n quoteVersion\n total {\n amount\n currency\n }\n }\n}",
"variables": {
"revisionId": "id"
}
}
EOF
Variables:
{
"revisionId": "id"
}
Response:
{
"data": {
"customerAcceptBidProposal": {
"bidTitle": "string",
"changedSections": [
"string"
],
"current": true,
"documents": [
"COMMERCIAL"
],
"quoteStatus": "string",
"quoteVersion": 0,
"total": {
"amount": "string",
"currency": "string"
}
}
}
}
customerAcceptBidProposal(
expectedVersion: Int
poNumber: String
revisionId: ID!
): CustomerBidProposalDetail!
Arguments
customerAcceptBidProposal.expectedVersion ● Int scalar
quoteVersion as you last read it. The accept is refused if the seller changed it since.
customerAcceptBidProposal.poNumber ● String scalar
Your purchase order number, kept on the order.
customerAcceptBidProposal.revisionId ● ID! non-null scalar
The proposal revision, as listed.
Type
CustomerBidProposalDetail object
One proposal revision sent to this customer, with its summary.