Storefront

Compute guest checkout summary

Changed on

Public storefront endpoint. Recomputes the selected shipping cost from destination, courier service, warehouse, payment method, and either direct items or the guest cart referenced by X-Scalev-Guest-Token. Client-supplied shipping_cost is ignored. Digital-only carts return shipping_cost: "0". An optional discount_code_code is revalidated. Service fees use the current Store customer-fee policy and are returned for display without a confirmation ID.

post/v3/stores/{store_id}/public/checkout/summary

Request

  • Base URL
    https://api.scalev.com
  • URL
    https://api.scalev.com/v3/stores/{store_id}/public/checkout/summary
  • Auth
    none required

Request body

payment_methodstring
warehouse_unique_idstring
courier_aggregator_codestring nullable
discount_code_codestring nullable

Optional discount code to revalidate and apply to this preview. Ineligible codes contribute zero discount.

Example request

{
  "payment_method": "bank_transfer"
}

Response

Guest checkout summary

other_income_namestring nullable required

Changes

    • info

      added the new optional request property /

    • info

      added the required property to the response with the status

    • info

      added to the response property allOf list for the response status

    • info

      removed subschema #1 subschema #2 from the response property oneOf list for the response status