Update inventory

POST
/admin/inventory

Authorization

headerx-api-key<token>

Organization-scoped API key with scope metadata.

Request Body

application/json
  1. body
productId*string
Length1 <= length
variantId?string
quantity*integer
Range-9007199254740991 <= value <= 9007199254740991
adjustment?string
Value in"set""increment""decrement"

Response Body

Success

application/json
  1. response
success*boolean
Example Request
curl -X POST 'https://api-prood.vercel.app/v1/admin/inventory' \  -H 'Content-Type: application/json' \  -d '{  "productId": "string",  "quantity": -9007199254740991}'
Example Response
{  "success": true}