Set variant warehouse stock
Creates or updates the stock quantity for a variant in a specific warehouse. If the stock record exists, it will be updated; otherwise, a new record will be created.
PUT
/api/v1/{team_slug}/{app_slug}/products/{product_id}/variants/{variant_id}/stockAuthorization
AuthorizationBearer token · headerrequiredManagement API token, sent as Authorization: Bearer <token>.
Path parameters
product_idstringrequiredProduct ID
variant_idstringrequiredVariant ID
app_slugstringrequiredApp slug
team_slugstringrequiredTeam slug
Request body
requiredapplication/jsonVariant stock data
inventory_datestringISO 8601 date format with time zone e.g. 2024-12-12T09:13:31.039Z.
quantityintegerwarehouse_slugstringrequiredResponses
200
Warehouse stock for variant created or updated successfully
datagithub_com_enadhq_nabbit_internal_pkg_webserver_models.WarehouseVariantStockrequiredShow propertiesHide properties
available_onlinebooleancreated_atstringidstringinventory_datestring | nullquantityintegerupdated_atstring | nullwarehouse_namestringwarehouse_slugstringdetailsstring[]Additional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes
successbooleanrequired400
Invalid request (e.g. bad UUID, validation error)
detailsstring[]messagestringsuccessbooleanrequired401
Unauthorized access
detailsstring[]messagestringsuccessbooleanrequired500
Internal server error
detailsstring[]messagestringsuccessbooleanrequired