Skip to main content
POST
Take a delivery into stock, or record what was already on the shelf.

Headers

Prefer
enum<string>

Preference

Available options:
params=single-object

Body

Take a delivery into stock, or record what was already on the shelf.

Without a unit cost the part's standard cost is used, because the moving average is computed from inbound movements and a costless receipt dilutes it.

p_occurred_at and p_transaction_type are for an opening balance: stock that has been there since before this product existed, dated as the customer says. One writer of inbound movements rather than two.

p_part_id
string<uuid>
required
p_quantity
number<numeric>
required
p_warehouse_id
string<uuid>
required
p_client_operation_id
string<uuid>
p_device_id
string<uuid>
p_notes
string<text>
p_occurred_at
string<timestamp with time zone>
p_reference
string<text>
p_transaction_type
string<text>
p_unit_cost
number<numeric>

Response

200

OK