Skip to content

quote

Get a quote

GET/v1/quotes/{quoteId}

Reads one quote by id with its line items, a pricing summary over them, and its current statement of work. Any quote in the workspace can be read, not only one a conversation is about, so quotes can be compared across clients.

Parameters

NameInRequiredTypeDescription
quoteIdpathYesstring—

Request body

No request body.

Responses and errors

  • 200

    Get a quote

    • quote (required): object
    • lineItems (required): array
    • pricingSummary (required): object — Revenue totals over the returned lines, in minor units. On an open quote every line counts except add-ons the client declined, so optional add-ons count until declined. On a won quote only accepted lines count. Each total is summed from unrounded line totals and rounded once, so it can differ by a cent from adding up the lines' rounded extendedPriceMinor values.
    • sow (required): object
  • 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}' \
  --header 'Authorization: Bearer $SCOPABLE_API_KEY'

Replace $SCOPABLE_API_KEY with a key created in Settings, API.

View the OpenAPI 3.1 source

Need help with the API? …