Create a landing page public order
Changed onPage-scoped public endpoint for Scalev.checkout.createOrder. This route accepts landing page order payloads with customer, destination, items, and shipping_option, requires X-Scalev-Page-Api-Key, and does not accept storefront public API keys. The page and store are resolved from the path and page API key; any page_unique_id or store_unique_id values supplied in the JSON body are ignored. Product prices, discounts, shipping, Other Income, the Store customer-fee policy, and service fees are recalculated from current backend data during creation; an earlier summary is not a confirmation input.
Request
- Base URLhttps://api.scalev.com
- URLhttps://api.scalev.com/v3/pages/{page_unique_id}/orders
- Authnone required
Request body
Example request
{
"customer": {
"name": "Raka Tester",
"phone": "08123456789",
"email": "raka@example.com"
},
"destination": {
"address": "Jl. Kopi No. 1",
"postal_code": "10510"
},
"items": [
{
"type": "product",
"variant_unique_id": "variant_x7f2a9",
"bundle_price_option_unique_id": "bundle_price_option_p4k8q2",
"quantity": 1
}
],
"payment_method": "va_bca",
"shipping_option": {
"courier_code": "jne",
"courier_name": "Ninja Xpress",
"service_code": "REG",
"name": "Regular"
}
}Response
Flat landing page public order object.
Example response
{
"payment_method": "bank_transfer"
}Changes
- info
added the new optional request property
- info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- info
api tag
Landing Page Runtimeadded - info
api tag
HTML Mode Pagesremoved
- info