Skip to Content
ReferenceAPIStorefrontCalculate a quote

Storefront API

Calculate a storefront quote

Calculate contextual prices for active storefront items.

POST/storefront/v1/{workspaceSlug}/quotes
capability storefront.pricing.quote · v1public dataserver-scoped workspace

Request

Path, query, and JSON body fields accepted by this operation.

  • workspaceSlugstringrequired
    pathmin length 1max length 64
  • currencyCodestringrequired
    bodymin length 3max length 3
  • linesobject[]required
    bodymin items 1max items 100
    • itemIdstring<uuid>required
    • quantityintegerrequired
      min 1max 10000
  • contextobject
    bodydefault {}
  • atstring<date-time>
    body

Response

Successful responses use Dawn's data envelope.

  • dataStorefrontQuoterequired
    • currencyCodestringrequired
      min length 3max length 3
    • linesobject[]required
      • itemIdstring<uuid>required
      • handlestringrequired
      • namestringrequired
      • quantityintegerrequired
        min 0max 9007199254740991
      • priceobjectrequired
      • subtotalintegerrequired
        min 0max 9007199254740991
    • totalintegerrequired
      min 0max 9007199254740991
    • calculatedAtstring<date-time>required
  • metaobject

Errors

Error responses use the shared error envelope.

  • 404A storefront item could not be found.
  • 409An applicable price is not available.
  • 422The storefront quote is invalid.
  • 503The storefront is temporarily unavailable.
Last updated on