Back to Aligni.com

Retrieve the list of all inventory units.

BETA API: This API is beta and is subject to change without notice.

Examples

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

# Filtering inventory units updated since July 10, 2020:

curl -g -H 'Accept: application/xml' -H 'Content-Type: application/xml' \
http://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/inventory_units?filter[updated_at][gte]=2020-07-10T11:15:28-07:00

# response
<inventory_units>
  <inventory_unit>
    <id>52</id>
    <part_id>754</part_id>
    <quantity>3600</quantity>
    <quantity_available>3600</quantity_available>
    <unit>each</unit>
    <cost_per_unit>0.009</cost_per_unit>
    <currency>USD</currency>
    <inventory_location>CDHQ - General Storage</inventory_location>
    <inventory_sublocation>Bronx</inventory_sublocation>
    <inventory_sublocation_id>2</inventory_sublocation_id>
    <sublocation_bin>Top Shelf<sublocation_bin/>
    <bin>Top Shelf</bin>
    <asset_id>A0000000</asset_id>
    <serial_number></serial_number>
    <lot_code>XKG982MAL</lot_code>
    <datecode>201019</datecode>
    <details/>
    <purchase_order_number/>
    <purchase_quantity/>
    <purchase_price/>
    <vendor/>
    <created_at>2013-11-14T10:34:00+00:00</created_at>
    <updated_at>2020-07-13T06:39:00+00:00</updated_at>
  </inventory_unit>
</inventory_units>

Params

Param name Description
api_token
required

Your API token.


Value: Must be a String
page
optional

Fetch requested page.


Value: Must be a Integer
per_page
optional

Fetch a specific number of entries per page.


Value: Must be a Integer