GET
/
products
/
{id}
Ürün detayını getir
curl --request GET \
  --url https://api.hemenmagaza.com/v1/products/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": 123,
  "sku": "<string>",
  "name": "<string>",
  "slug": "<string>",
  "price": 123,
  "currency": "<string>",
  "stock": 123,
  "description": "<string>",
  "regular_price": 123,
  "images": [
    "<string>"
  ],
  "categories": [
    {
      "id": 123,
      "name": "<string>",
      "slug": "<string>",
      "parent_id": 123,
      "image_url": "<string>",
      "children": "<array>",
      "seo": {
        "title": "<string>",
        "description": "<string>",
        "og_image": "<string>"
      }
    }
  ],
  "variants": [
    {
      "id": 123,
      "sku": "<string>",
      "price": 123,
      "stock": 123,
      "attributes": {}
    }
  ],
  "seo": {
    "title": "<string>",
    "description": "<string>",
    "og_image": "<string>"
  },
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Authorization: Bearer YOUR_API_TOKEN

Path Parameters

id
integer
required

Ürün ID değeri.

Example:

101

Response

Başarılı ürün detayı.

id
integer
required
Example:

101

sku
string
required
Example:

"HM-TSHIRT-001"

name
string
required
Example:

"Siyah Oversize Tişört"

slug
string
required
Example:

"siyah-oversize-tisort"

type
enum<string>
required
Available options:
simple,
configurable,
virtual,
downloadable,
grouped,
bundled,
booking
price
number<float>
required
Example:

599.9

currency
string
required
Example:

"TRY"

stock
integer
required
Example:

24

status
enum<string>
required
Available options:
active,
inactive
description
string | null
Example:

"Günlük kullanım için rahat kesim tişört."

regular_price
number<float>
Example:

699.9

images
string<uri>[]
categories
object[]
variants
object[]
seo
object
created_at
string<date-time>
updated_at
string<date-time>