Skip to main content
PATCH
/
admin
/
inventory
/
{item_id}
재고 설정 변경 (track, backorder, safety_stock)
curl --request PATCH \
  --url https://api.headlesscommerce.io/v1/admin/inventory/{item_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "track_inventory": true,
  "allow_backorder": true,
  "safety_stock": 123
}
'
{
  "id": "<string>",
  "variant_id": "<string>",
  "track_inventory": true,
  "allow_backorder": true,
  "safety_stock": 123,
  "on_hand": 123,
  "reserved": 123,
  "available": 123,
  "metadata": {}
}

Authorizations

Authorization
string
header
required

API Key. 예: sk_live_xxxxx 또는 pk_live_xxxxx

Path Parameters

item_id
string
required

Body

application/json
track_inventory
boolean
allow_backorder
boolean
safety_stock
integer

Response

200 - application/json

Success

id
string
variant_id
string
track_inventory
boolean
allow_backorder
boolean
safety_stock
integer
on_hand
integer
reserved
integer
available
integer
metadata
object