Create a product stock
Creates a stock record for a product.
product is required, and because a product may have only one stock record, a product that already has one is rejected. stock defaults to 0 and unit_type to qty when omitted. The identifier is assigned by the server; a pk sent in the request body is ignored.
When the LIST_SIMPLE_INSTEAD_OF_META dynamic setting is enabled and the product is a simple type, the product's listable status is recomputed after the stock is saved (see the section description).
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The body of a product-stock create or full update request.
The identifier of the product this stock belongs to. Required on create. On update it must match the record's current product — a different value is rejected.
The sellable quantity. A non-negative integer. Reconciled against sold_quantity_unreported on write.
0The unit of measure of a stock quantity.
Free-form JSON for extra data. Optional.
The quantity sold locally but not yet reported. Optional; normally managed internally.
The created 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.
POST /api/v1/remote/1/product_stock/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"product": 3391,
"stock": 24,
"unit_type": "qty"
}{
"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?

