Back to Aligni.com
Also see show action for partnumber request example.

Retrieve the list of all inventory units for a part. When using a partnumber, replace

url :id with :partnumber and append the url with find_by=partnumber query.

Examples

# request
curl -H 'Accept: application/xml' -H 'Content-Type: application/xml' \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/part/728/inventory_units

# response
<inventory_units>
  <inventory_unit>
    <quantity>3600</quantity>
    <cost_per_unit>0.009</cost_per_unit>
    <inventory_sublocation_id>2</inventory_sublocation_id>
    <unit_id>2</unit_id>
  </inventory_unit>
  ...
</inventory_units>

Params

Param name Description
api_token
required

Your API token.


Value: Must be a String
id
required

Part ID.


Value: Must be a number.
partnumber
optional

Must include find_by query


Value: Must be a String