Update Supplier Inventory
PUT/api/supplier-inventories/:id
Updates a supplier inventory record. Sets source to 'user'. Provide either quantity OR in_stock (not both). On update every field is optional, so you can send a partial update — for example only discontinued or eta — without re-sending quantity/in_stock; the existing stock value is preserved.
suppliers:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token.
Fields:
- supplier_id (required on create, optional on update): ID of the supplier
- product_id (required on create, optional on update): ID of the product
- warehouse_id (required on create, optional on update): ID of the warehouse
- quantity (required on create if in_stock not provided; optional on update): Stock quantity (must be non-negative number). Sending quantity clears in_stock.
- in_stock (required on create if quantity not provided; optional on update): Boolean stock flag — true means in stock with unspecified quantity. Sending in_stock clears quantity.
- discontinued (optional): Boolean, marks item as discontinued
- eta (optional): Expected availability date (ISO date)
- source (required on create, optional on update): One of: user, api
Request
Responses
- 201
- 401
- 403
- 404
- 422
- 429
Created
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.