Skip to main content
POST
/
v3
/
stores
/
{store_id}
/
public
/
checkout
/
summary
Compute guest checkout summary
curl --request POST \
  --url https://api.scalev.com/v3/stores/{store_id}/public/checkout/summary \
  --header 'Content-Type: application/json' \
  --header 'X-Scalev-Storefront-Api-Key: <x-scalev-storefront-api-key>' \
  --data '
{
  "items": [
    {
      "type": "variant",
      "variant_id": 2,
      "quantity": 50
    }
  ],
  "payment_method": "bank_transfer",
  "courier_service_id": 123,
  "warehouse_unique_id": "<string>",
  "courier_aggregator_code": "<string>",
  "shipping_option": {
    "courier_service_id": 123,
    "warehouse_unique_id": "<string>",
    "courier_aggregator_code": "<string>"
  },
  "selected_shipping_option": {
    "courier_service_id": 123,
    "warehouse_unique_id": "<string>",
    "courier_aggregator_code": "<string>"
  },
  "shipping_cost": "<string>"
}
'
{
  "product_price": "<string>",
  "shipping_cost": "<string>",
  "other_income": "<string>",
  "other_income_name": "<string>",
  "gross_revenue": "<string>"
}

Headers

X-Scalev-Storefront-Api-Key
string
required

Publishable storefront public API key for the target store. Page public API keys are not accepted on Storefront public routes.

X-Scalev-Guest-Token
string<uuid>

Browser-safe guest cart token returned by the first guest-cart response when no token is sent. Send it on later guest-cart and public checkout calls to keep the same cart after reloads.

Path Parameters

store_id
string
required

Store unique_id.

Body

application/json
items
object[]

Optional direct item source. If supplied, these items are used for the shipping-options calculation. Otherwise the guest cart referenced by X-Scalev-Guest-Token is used.

Required array length: 1 - 50 elements
destination
object
payment_method
string
Example:

"bank_transfer"

courier_service_id
warehouse_unique_id
string
courier_aggregator_code
string | null
shipping_option
object
selected_shipping_option
object
shipping_cost

Ignored by the API. Shipping cost is recomputed from the selected courier service and destination.

Response

Guest checkout summary

product_price
required
shipping_cost
required
other_income
required
other_income_name
string | null
required
gross_revenue
required