Skip to main content
POST
Set Inventory Level

Set Inventory Level

Sets the stock for an inventory item to an absolute value. Unlike adjust, this sets the exact quantity rather than adding or subtracting.

Request

Body Parameters

string
required
The inventory item ID to update — a variant UUID (varientId) or a product ID. The variant’s stock is updated first; if no variant matches, the product-level stock is set as a fallback.
integer
required
The absolute available quantity to set (must be >= 0)

Response

Responses use the standard platform envelope: status, type, and a data object containing the updated inventory_level.
integer
HTTP status code (200 on success)
string
"success" or "error"
object
Wrapper for the updated inventory level

Example Response

Use Cases

LaunchMyStore tracks a single stock value per variant (with a product-level fallback) — there is no per-location inventory model. Inventory is set or adjusted on the item directly, so there are no location connect/disconnect operations.

Error Responses