Langsung ke konten utama
GET
/
v3
/
stores
/
{store_id}
/
public
/
products
/
{slug}
Get a storefront product by slug
curl --request GET \
  --url https://api.scalev.com/v3/stores/{store_id}/public/products/{slug} \
  --header 'X-Scalev-Storefront-Api-Key: <x-scalev-storefront-api-key>'
{
  "id": 123,
  "slug": "<string>",
  "name": "<string>",
  "entity_type": "product",
  "item_type": "<string>",
  "in_stock": true,
  "price_range": {
    "min": "<string>",
    "max": "<string>"
  },
  "images": [
    "<string>"
  ],
  "description": "<string>",
  "meta_thumbnail": "<string>",
  "is_multiple": true,
  "option1_name": "<string>",
  "option2_name": "<string>",
  "option3_name": "<string>",
  "taxonomy": {
    "id": 123,
    "name": "<string>",
    "full_path": "<string>"
  },
  "created_at": "2023-11-07T05:31:56Z",
  "rich_description": "<string>",
  "variants": [
    {
      "id": 123,
      "uuid": "<string>",
      "unique_id": "<string>",
      "sku": "<string>",
      "name": "<string>",
      "fullname": "<string>",
      "description": "<string>",
      "rich_description": "<string>",
      "option1_value": "<string>",
      "option2_value": "<string>",
      "option3_value": "<string>",
      "item_type": "<string>",
      "currency": "<string>",
      "price": "<string>",
      "pricing_type": "<string>",
      "interval": "<string>",
      "interval_count": 123,
      "images": [
        "<string>"
      ],
      "is_inventory": true,
      "is_active": true,
      "weight": 123,
      "metadata": {}
    }
  ]
}

Header

X-Scalev-Storefront-Api-Key
string
wajib

Publishable storefront public API key for the target store. Page public API keys are not accepted on Storefront public routes.

Parameter Path

store_id
string
wajib

Store unique_id.

slug
string
wajib

Respons

Storefront product detail

id
integer
wajib
slug
string
wajib
name
string
wajib
entity_type
enum<string>
wajib
Opsi yang tersedia:
product
item_type
string
wajib

Product item type.

in_stock
boolean
wajib
price_range
object
wajib
images
string[]
wajib
description
string | null
meta_thumbnail
string | null
is_multiple
boolean | null
option1_name
string | null
option2_name
string | null
option3_name
string | null
taxonomy
object
created_at
string<date-time> | null
rich_description
string | null
variants
object[]