Skip to main content
PUT
/
api
/
v1
/
:team_slug
/
:app_slug
/
products
/
:product_id
/
variants
/
:variant_id
/
stock
Error
A valid request URL is required to generate request examples
{
  "data": {
    "available_online": true,
    "created_at": "<string>",
    "id": "<string>",
    "inventory_date": "<string>",
    "quantity": 123,
    "updated_at": "<string>",
    "warehouse_name": "<string>",
    "warehouse_slug": "<string>"
  },
  "details": [
    "<string>"
  ],
  "success": true
}

Path Parameters

product_id
string
required

Product ID

variant_id
string
required

Variant ID

app_slug
string
required

App slug

team_slug
string
required

Team slug

Body

application/json

Variant stock data

warehouse_slug
string
required
inventory_date
string

ISO 8601 date format with time zone e.g. 2024-12-12T09:13:31.039Z.

quantity
integer

Response

Warehouse stock for variant created or updated successfully

data
object
details
string[]

Other information which can be relative to the response. This field is used to give additional information then the main data we want to return. For instance if a product do not match the publishing rules will the product status be set to Incomplete and this field will include why

success
boolean