Langsung ke konten utama
POST
/
v3
/
pages
/
{page_unique_id}
/
checkout
/
shipping-options
List HTML Mode checkout shipping options
curl --request POST \
  --url https://api.scalev.com/v3/pages/{page_unique_id}/checkout/shipping-options \
  --header 'Content-Type: application/json' \
  --header 'X-Scalev-Page-Api-Key: <x-scalev-page-api-key>' \
  --data '
{
  "items": [
    {
      "type": "product",
      "quantity": 1,
      "variant_unique_id": "variant_x7f2a9",
      "bundle_price_option_unique_id": "bundle_price_option_p4k8q2"
    }
  ],
  "destination": {
    "address": "Jl. Kopi No. 1",
    "subdistrict_id": 3171010,
    "postal_code": "10510"
  },
  "payment_method": "bank_transfer"
}
'
{
  "data": [
    {
      "courier_service_id": 123,
      "courier_code": "jne",
      "service_code": "REG",
      "name": "Regular",
      "cost": "<string>",
      "etd": "<string>",
      "is_cod": true,
      "warehouse_unique_id": "<string>",
      "courier_aggregator_code": "<string>",
      "logo_url": "<string>"
    }
  ],
  "is_paginated": false
}

Header

X-Scalev-Page-Api-Key
string
wajib

Publishable page public API key for the page_unique_id path page. Storefront public API keys are not accepted on page-scoped public routes.

Parameter Path

page_unique_id
string
wajib

Public page unique ID.

Contoh:

"page_540f48019f525f41"

Body

application/json

HTML Mode checkout payload used by Scalev.checkout.shippingOptions(payload). Use one combined items list for item selection; the path page and page API key determine the store context.

items
object[]
Minimum array length: 1
destination
object

Buyer destination submitted by an HTML Mode page.

payment_method
string
Contoh:

"bank_transfer"

Respons

HTML Mode checkout shipping options

data
object[]
wajib
is_paginated
enum<boolean>
wajib
Opsi yang tersedia:
false