Skip to main content
PUT
Update Stock

Authorizations

Authorization
string
header
required

You can retrieve your API key from your dashboard under Account > Developers.

Path Parameters

shopId
integer
required

The shop ID.

productId
integer
required

The product ID.

variantId
integer
required

The variant ID.

Body

application/json
stock
integer
required

The new stock count. Use -1 for unlimited stock. Must be between -1 and 1000000.

Example:

25

Response

success
boolean
Example:

true

stock
integer
Example:

25