Skip to main content
PATCH
/
api
/
v1
/
inventory
/
{id}
Update inventory
curl --request PATCH \
  --url https://shelfforce.ai/api/v1/inventory/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sku": "<string>",
  "brand": "<string>",
  "name": "<string>",
  "category": "<string>",
  "subcategory": "<string>",
  "sizeValue": 123,
  "sizeUnit": "<string>",
  "expectedPrice": 123,
  "currency": "<string>",
  "upc": "<string>"
}
'
{
  "data": {
    "id": "<string>",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key with sf_live_ prefix. Pass as Authorization: Bearer sf_live_...

Headers

Idempotency-Key
string

Unique key for idempotent requests. If a request with the same key was already processed within the last 24 hours, the cached response is returned with X-Idempotent-Replayed: true.

Example:

"idk_550e8400-e29b-41d4-a716-446655440000"

Path Parameters

id
string
required

Inventory item ID.

Example:

"inv_a1b2c3"

Body

application/json
sku
string
Example:

"CC-330ML-CAN"

brand
string
Example:

"Coca-Cola"

name
string
Example:

"Coca-Cola Original 330ml Can"

category
string
Example:

"Beverages"

subcategory
string
Example:

"Carbonated Soft Drinks"

sizeValue
number
Example:

330

sizeUnit
string
Example:

"ml"

expectedPrice
number
Example:

1.49

currency
string
Example:

"USD"

upc
string
Example:

"049000042566"

Response

Inventory item updated.

data
object
required