validateQuotePayload
Validate a draft quote payload before calling createQuote. Nothing is persisted. An empty blockingErrors, warningErrors and pendingValidations means the payload would pass validation. This is not Quote.validation, which returns the cached results of an existing quote. Same authorization as createQuote: no read-only roles.
For a draft payload the lists of QuoteValidation read as follows: blockingErrors are the problems that would block the payload from becoming a valid quote (the fields describe a quote that does not exist yet, so itemId is always null), warningErrors do not block, and pendingValidations are checks that are still running.
Rule violations, including an empty items list, are returned as data in QuoteValidation. Permission failures and unexpected failures are returned as top-level GraphQL errors with path validateQuotePayload. The REST opportunity payload validation answers many of these cases with an HTTP 4xx instead.
This page contains
Arguments
| input CreateQuoteInput! PREVIEW | Draft quote, same input as createQuote |
Return Fields
| QuoteValidation! PREVIEW | Quote validation results |
Interactive example
This is an example query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.