quote
Run a quote's review checks
/v1/quotes/{quoteId}/review-checksRuns the automatic checks a quote review starts from and answers what they found, most severe first, with the lines each finding is about. The checks cover lines priced under cost or with no cost, contract and line margins under the workspace margin floor, free lines, unverified prices, hardware with no installation labor or support, recurring lines with no term, labor with no statement of work, expiry, repeated SKUs and products with no SKU. The checks that found nothing are listed too. Running the checks changes nothing. A quote outside the workspace answers not_found.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| quoteId | path | Yes | string | — |
Request body
No request body.
Responses and errors
200
Run a quote's review checks
- quoteId (required): string
- currency (required): object
- marginFloorPercent (required): number — The lowest acceptable margin, in percent: the workspace's own floor, or the platform default when it has none.
- marginFloorIsConfigured (required): boolean — False when the workspace has set no margin floor and the platform default applies.
- contractValueMinor (required): integer — The quote's contract value in minor units, as the quote workspace shows it.
- contractCostMinor (required): integer — The quote's cost over the same lines and terms, in minor units.
- contractMarginPercent (required): object — Contract margin in percent. Null when the quote has no revenue, so a margin would be meaningless.
- findings (required): array — What the checks found, most severe first.
- passedChecks (required): array — The checks that ran and found nothing.
- composition (required): object — How many lines of each kind the quote carries, counting every line.
400
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- ValidationFailedError:
- allOf: ErrorEnvelope
401
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- UnauthorizedError:
- allOf: ErrorEnvelope
403
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- ForbiddenError:
- allOf: ErrorEnvelope
404
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- NotFoundError:
- allOf: ErrorEnvelope
429
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- RateLimitedError:
- allOf: ErrorEnvelope
503
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- UnavailableError:
- allOf: ErrorEnvelope
Example
curl --request GET \
--url 'https://api.scopable.io/v1/quotes/{quoteId}/review-checks' \
--header 'Authorization: Bearer $SCOPABLE_API_KEY'Replace $SCOPABLE_API_KEY with a key created in Settings, API.
Need help with the API? …