Partially update a product stock
Updates one or more fields of a product-stock record. Only the fields included in the request body are changed; everything left out keeps its current value.
The product cannot be changed: including a product that differs from the record's current one is rejected with 406 Not Acceptable.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the product-stock record.
The body of a product-stock partial update request. Only the fields included in the body are changed; every field is optional.
Including a product that differs from the record's current one is rejected. Omitting it keeps the current product.
The sellable quantity. Reconciled against sold_quantity_unreported on write.
The unit of measure of a stock quantity.
Free-form JSON for extra data.
The quantity sold locally but not yet reported.
The updated product-stock record.
A product-stock record — the primary on-hand quantity of a single product.
The unique identifier of the record.
The identifier of the product this stock belongs to. One record per product.
The sellable quantity. A non-negative integer.
The unit of measure of a stock quantity.
Free-form JSON for extra data.
The quantity sold locally but not yet reflected in the externally reported stock.
ISO 8601 timestamp of the last modification.
The request contains invalid or missing data — for example a missing product, a product that does not exist or already has a stock record, a negative stock, or an unrecognised unit_type. The response names the field the complaint belongs to.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
No product-stock record exists with the given identifier. Zeroed-out records are still retrievable, so this answer means the record does not exist at all.
The request is well-formed but violates a business rule of the stock service — the product of an existing record was changed, or an element of a bulk upsert was missing product or was otherwise malformed.
PATCH /api/v1/remote/1/product_stock/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 12
{
"stock": 30
}{
"pk": 512,
"product": 3391,
"stock": 24,
"unit_type": "qty",
"extra_field": {},
"sold_quantity_unreported": 0,
"modified_date": "2026-08-21T10:15:30Z"
}Last updated
Was this helpful?

