publicSubmitPriceAnswer
Public: no authentication required.
Sends the vendor's one answer: unit price, currency, lead time, how long it holds, an optional PDF and note. Needs no sign-in: the signed link token is the credential. Any invalid, expired, revoked or used link gets one message.
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 PublicSubmitPriceAnswer($input: PublicPriceAnswerInput!, $token: String!) {
publicSubmitPriceAnswer(input: $input, token: $token) {
number
orgName
answered
declined
deliverBy
dueAt
myAnswer {
fileName
currency
leadTimeDays
unitPrice
validUntil
vendorNote
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation PublicSubmitPriceAnswer($input: PublicPriceAnswerInput!, $token: String!) {\n publicSubmitPriceAnswer(input: $input, token: $token) {\n number\n orgName\n answered\n declined\n deliverBy\n dueAt\n myAnswer {\n fileName\n currency\n leadTimeDays\n unitPrice\n validUntil\n vendorNote\n }\n }\n}",
"variables": {
"input": {
"currency": "string",
"leadTimeDays": 0,
"unitPrice": "string",
"validUntil": "2025-01-15T00:00:00Z"
},
"token": "string"
}
}
EOF
Variables:
{
"input": {
"currency": "string",
"leadTimeDays": 0,
"unitPrice": "string",
"validUntil": "2025-01-15T00:00:00Z"
},
"token": "string"
}
Response:
{
"data": {
"publicSubmitPriceAnswer": {
"number": "string",
"orgName": "string",
"answered": true,
"declined": true,
"deliverBy": "2025-01-15T00:00:00Z",
"dueAt": "2025-01-15T00:00:00Z",
"myAnswer": {
"fileName": "string",
"currency": "string",
"leadTimeDays": 0,
"unitPrice": "string",
"validUntil": "2025-01-15T00:00:00Z",
"vendorNote": "string"
}
}
}
}
publicSubmitPriceAnswer(
input: PublicPriceAnswerInput!
token: String!
): PublicPriceRequest!
Arguments
publicSubmitPriceAnswer.input ● PublicPriceAnswerInput! non-null input
The answer.
publicSubmitPriceAnswer.token ● String! non-null scalar
The token from the vendor's link.
Type
PublicPriceRequest object
A request to quote one item, as the vendor asked reads it.