Create an HTML Mode public order
Page-scoped public endpoint for HTML Mode Scalev.checkout.createOrder. This route accepts HTML Mode 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 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",
"service_code": "REG",
"name": "Regular"
}
}Response
Flat HTML Mode public order object.
Example response
{
"payment_method": "bank_transfer"
}Changes
Changed in 2 of the 4 revisions of this API.28
- ○
added the new optional request property
other_incomenew-optional-request-property
- ○
added the new optional request property
other_income_namenew-optional-request-property
- ○
added
StorefrontMoneyValueto theother_incomeresponse propertyallOflist for the response status201response-property-all-of-added
- ○
removed
subschema #1subschema #2from theother_incomeresponse propertyoneOflist for the response status201response-property-one-of-removed
- ○
- ●
removed the request property
sub_payment_methodrequest-property-removed
- ●
removed the optional property
sub_payment_methodfrom the response with the201statusresponse-optional-property-removed
- ○
added the new optional request property
is_post_payment_redirect_enablednew-optional-request-property
- ○
added the new optional request property
post_payment_redirect_urlnew-optional-request-property
- ○
added the optional property
payment_link_incometo the response with the201statusresponse-optional-property-added
- ○
added the optional property
post_payment_redirect_urlto the response with the201statusresponse-optional-property-added
- ●