Back to Aligni.com

Move an inventory unit to another inventory sublocation.

Examples

# request
curl -X PUT -H 'Accept: application/xml' -H 'Content-Type: application/xml' -d "
<inventory_unit>
  <inventory_sublocation_id>3</inventory_sublocation_id>
  <sublocation_bin>Top Shelf</sublocation_bin>
  <inventory_record>
    <comment>Moving to a new storage.</comment>
  </inventory_record>
</inventory_unit>" \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/parts/728/inventory_units/104/move

# response
<inventory_unit>
  <id>104</id>
  <quantity>1247</quantity>
  <quantity_available>1247</quantity_available>
  <unit>each</unit>
  <cost_per_unit>0.009</cost_per_unit>
  <currency>USD</currency>
  <inventory_location>CDHQ - Bin 14</inventory_location>
  <sublocation_bin>Top Shelf</sublocation_bin>
  <asset_id></asset_id>
  <serial_number/>
  <lot_code></lot_code>
  <datecode></datecode>
  <details/>
  <purchase_order_number/>
  <purchase_quantity/>
  <purchase_price/>
  <vendor/>
  <created_at>2016-12-07T12:47:09-08:00</created_at>
  <updated_at>2016-12-07T12:47:09-08:00</updated_at>
</inventory_unit>

Params

Param name Description
api_token
required

Your API token.


Value: Must be a String
id
required

Inventory unit ID.


Value: Must be a Integer
part_id
required

ID of the part to which the inventory unit belongs.


Value: Must be a Integer
inventory_unit
required

Value: Must be a Hash
inventory_unit[inventory_sublocation_id]
required

Inventory sublocation ID


Value: Must be a Integer
inventory_unit[sublocation_bin]
optional

Sublocation bin


Value: Must be a String
inventory_unit[inventory_record]
optional

Value: Must be a Hash
inventory_unit[inventory_record][comment]
optional

The movement will be logged. The following will accompany the log entry.


Value: Must be a String