Back to Aligni.com

Retrieve one particular part by its id or partnumber. 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

# You can specify the part revision by adding revision_id to the URL request.
# If no part revision is specified the active part revision is used.
curl -H 'Accept: application/xml' -H 'Content-Type: application/xml' \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/part/728?revision_id=171

# You can find a part by :partnumber.
# Replace :id with :partnumber and append ?find_by=partnumber to the URL.
curl -H 'Accept: application/xml' -H 'Content-Type: application/xml' \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/part/000019?find_by=partnumber&revision_id=171

# response
<?xml version="1.0" encoding="UTF-8"?>
<part>
  <id>728</id>
  <partnumber>000019</partnumber>
  <manufacturer_pn>C0603C104K4RACTU</manufacturer_pn>
  <manufacturer_id>147</manufacturer_id>
  <parttype_id>47</parttype_id>
  <unit_id>42</unit_id>
  <value>1.0e-07</value>
  <value_text>0.1 u</value_text>
  <created_on>2006-01-24 20:11:47 -0800</created_on>
  <updated_on>2014-09-05 01:55:22 -0700</updated_on>
  <inventory_price>0.009</inventory_price>
  <reorder_quantity>12000.0</reorder_quantity>
  <inventory_maximum>13000.0</inventory_maximum>
  <preferred_vendor_id>3</preferred_vendor_id>
  <manufactured_here>true</manufactured_here>
  <x_outsourced>false</x_outsourced>
  <x_outsourcing_location/>
  <revision>
    <id>171</id>
    <revision_name>A</revision_name>
    <revision_description/>
    <comment/>
    <description/>
    <rohs>1</rohs>
    <x_tolerance>10.0</x_tolerance>
    <x_package>0603</x_package>
    <x_packaging>Tape and Reel</x_packaging>
    <x_temperature-characteristic>X7R</x_temperature-characteristic>
    <x_mass value_text="6 m">0.006</x_mass>
    <x_schematic_symbol>Capacitor</x_schematic_symbol>
    <x_pcb_footprint_1>CAPC1608N</x_pcb_footprint_1>
    <x_pcb_footprint_2/>
    <x_pcb_footprint_3/>
  </revision>
  <quotes>
    <quote>
      <id>162</id>
      <vendor_id>41</vendor_id>
      <price>0.0035</price>
      <quantity_min>4000</quantity_min>
      <quantity_mult>4000</quantity_mult>
      <leadtime>2</leadtime>
      <updated_on>2006-11-29 20:30:46 -0800</updated_on>
      <expires_on/>
      <unit_id>1</unit_id>
      <unit_conversion_id>1</unit_conversion_id>
      <inventory>10</inventory>
      <comment>New</comment>
      <currency>USD</currency>
    </quote>
  </quotes>
  <vendor_part_numbers>
    <vendor_part_number>
      <vendor_id>40</vendor_id>
      <part_number>399-1096-2-ND</part_number>
      <comment>4000-pc Tape &amp; Reel</comment>
    </vendor_part_number>
    <vendor_part_number>
      <vendor_id>40</vendor_id>
      <part_number>399-1096-1-ND</part_number>
      <comment>Cut tape</comment>
    </vendor_part_number>
  </vendor_part_numbers>
  <alternate_parts>
    <alternate_part>
      <part_id>748</part_id>
      <comment></comment>
      <quality>100</quality>
    </alternate_part>
    <alternate_part>
      <part_id>749</part_id>
      <comment></comment>
      <quality>100</quality>
    </alternate_part>
  </alternate_parts>
  <inventory_units>
    <inventory_unit>
      <id>52</id>
      <quantity>3600</quantity>
      <inventory_location_id>1</inventory_location_id>
      <inventory_location_name>Headquarters</inventory_location_name>
      <inventory_sublocation_id>2</inventory_sublocation_id>
      <inventory_sublocation_name>Bin 10</inventory_sublocation_name>
      <sublocation_bin>Safe</sublocation_bin>
      <purchase_order_id>2</purchase_order_id>
    </inventory_unit>
    <inventory_unit>
      <id>104</id>
      <quantity>1275</quantity>
      <inventory_location_id>2</inventory_location_id>
      <inventory_location_name>Funtronics</inventory_location_name>
      <inventory_sublocation_id>15</inventory_sublocation_id>
      <inventory_sublocation_name>General Storage</inventory_sublocation_name>
      <sublocation_bin>Safe</sublocation_bin>
      <purchase_order_id>15</purchase_order_id>
    </inventory_unit>
  </inventory_units>
  <partlist_parts>
    <partlist_part>
      <part_id>744</part_id>
      <part_revision_id>171</part_revision_id>
      <quantity>4</quantity>
      <comment></comment>
      <no_load>false</no_load>
    </partlist_part>
    <partlist_part>
      <part_id>747</part_id>
      <part_revision_id>171</part_revision_id>
      <quantity>6</quantity>
      <comment></comment>
      <no_load>false</no_load>
    </partlist_part>
  </partlist_parts>
  <subparts>
    <subpart>
      <id>103</id>
      <part_id>741</part_id>
      <part_revision_id>197</part_revision_id>
      <quantity>1</quantity>
      <comment>PCB assembly</comment>
      <designator/>
      <no_load>false</no_load>
      <position>1</position>
    </subpart>
    <subpart>
      <id>104</id>
      <part_id>745</part_id>
      <part_revision_id>197</part_revision_id>
      <quantity>1</quantity>
      <comment>Electrical testing</comment>
      <designator></designator>
      <no_load>false</no_load>
      <position>2</position>
    </subpart>
  </subparts>
</part>

Params

Param name Description
api_token
required

Your API token.


Value: Must be a String
id
required

Value: Must be a Integer
partnumber
optional

Must include find_by query


Value: Must be a String