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": [
{
"variant_id": 123,
"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>"
}Public storefront endpoint. Recomputes the selected shipping cost from destination, courier service, warehouse, payment method, and cart items. Client-supplied shipping_cost is ignored. Digital-only carts return shipping_cost: "0".
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": [
{
"variant_id": 123,
"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>"
}Documentation Index
Fetch the complete documentation index at: https://docs.scalev.com/llms.txt
Use this file to discover all available pages before exploring further.
Publishable storefront public API key for the target store.
Browser-safe guest cart token returned by the first guest-cart response when no token is sent. Send it on later guest-cart and guest-checkout calls to keep the same cart after reloads.
Store unique_id.
Optional direct item source. Used only when X-Scalev-Guest-Token does not resolve a non-empty guest cart. Direct items support variants only; bundle support comes through the guest cart.
1 - 50 elementsShow child attributes
Show child attributes
"bank_transfer"
Show child attributes
Show child attributes
Ignored by the API. Shipping cost is recomputed from the selected courier service and destination.
Apakah halaman ini membantu?