Langsung ke konten utama
POST
/
v3
/
stores
/
{store_id}
/
public
/
checkout
/
shipping-options
List guest checkout shipping options
curl --request POST \
  --url https://api.scalev.com/v3/stores/{store_id}/public/checkout/shipping-options \
  --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"
}
'
{
  "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>"
    }
  ],
  "is_paginated": false
}

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.

Header

X-Scalev-Storefront-Api-Key
string
wajib

Publishable storefront public API key for the target store.

X-Scalev-Guest-Token
string<uuid>

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.

Parameter Path

store_id
string
wajib

Store unique_id.

Body

application/json
items
object[]

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.

Required array length: 1 - 50 elements
destination
object
payment_method
string
Contoh:

"bank_transfer"

Respons

Guest checkout shipping options

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