v4

latestOpenAPI 3.0.3Proprietary2026-08-083483431.1 MB
HTML Mode Pages

Compute an HTML Mode checkout summary

Page-scoped public endpoint used by Scalev.checkout.estimateSummary(payload). It accepts HTML Mode items, destination, payment_method, shipping_option, and an optional discount_code_code. It recomputes shipping and applies backend-owned Other Income and service fees for display. The current Store settings are the authoritative customer-fee policy; clients do not submit that policy or a fee confirmation ID.

post/v3/pages/{page_unique_id}/checkout/summary

Request body

payment_methodstring
discount_code_codestring nullable

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

Example request

{
  "items": [
    {
      "type": "product",
      "variant_unique_id": "variant_x7f2a9",
      "bundle_price_option_unique_id": "bundle_price_option_p4k8q2",
      "quantity": 1
    }
  ],
  "destination": {
    "address": "Jl. Kopi No. 1",
    "postal_code": "10510"
  },
  "payment_method": "bank_transfer",
  "shipping_option": {
    "courier_code": "jne",
    "service_code": "REG",
    "name": "Regular"
  }
}

Response

HTML Mode checkout summary

other_income_namestring nullable required