Receive stock, adjust with a reason or record a count (variance is calculated). Refuses to go below zero unless the product allows it

post/api/v1/stock/movements

Request

  • Base URL: http://127.0.0.1:4310
  • URL: http://127.0.0.1:4310/api/v1/stock/movements
  • Auth: one of:
    • HTTP bearer
    • API key in cookie sfb_session

Request body

kind'receive' | 'adjustment' | 'count' required
variant_idstring uuid required
location_idstring uuid
stock_location_idstring uuid
quantityinteger
counted_quantityinteger
reasonstring
unit_cost_minorinteger
idempotency_keystring required

Unique per change. Repeating it returns the original result.

Response

OK

object required

Changes

No recorded changes to this operation across all 4 revisions of this API.