Set Stock for Multiple Variants
Updates or creates stock quantities for multiple product variants across different warehouses in a single bulk operation. Each item in the request specifies a variant ID, warehouse slug, and the new stock quantity with an optional inventory date. Returns lists of successful and failed operations.
PUT
/api/v1/{team_slug}/{app_slug}/variants/stock/bulkAuthorization
AuthorizationBearer token · headerrequiredManagement API token, sent as Authorization: Bearer <token>.
Path parameters
team_slugstringrequiredTeam slug
app_slugstringrequiredApp slug
Request body
requiredapplication/jsonStock data to set
itemsinternal_pkg_webserver_v1.BulkSetStockItem[]requiredmax items 100
Show propertiesHide properties
Array of
internal_pkg_webserver_v1.BulkSetStockIteminventory_datestringquantityintegervariant_idstringrequiredwarehouse_slugstringrequiredResponses
200
Stock set successfully
datainternal_pkg_webserver_v1.BulkSetStockResponserequiredShow propertiesHide properties
failed_setsinternal_pkg_webserver_v1.BulkStockFailedOp[] | nullShow propertiesHide properties
Array of
internal_pkg_webserver_v1.BulkStockFailedOpreasonstringvariant_idstringwarehouse_slugstringsuccessful_setsgithub_com_enadhq_nabbit_internal_pkg_webserver_models.WarehouseVariantStock[] | nullShow propertiesHide properties
Array of
github_com_enadhq_nabbit_internal_pkg_webserver_models.WarehouseVariantStockavailable_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
detailsstring[]messagestringsuccessbooleanrequired401
Unauthorized access
detailsstring[]messagestringsuccessbooleanrequired500
Internal server error
detailsstring[]messagestringsuccessbooleanrequired