Back to Aligni.com

Note: This API endpoint is presently in BETA and subject to change.

Retrieve one particular purchase order by its id.

Examples

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

# Example of Sucess Response
<?xml version="1.0" encoding="UTF-8"?>
<purchase_order>
  <id>41</id>
  <site_id>5</site_id>
  <purchase_id>1</purchase_id>
  <inventory_location_id/>
  <number/>
  <created_on>2016-02-11 06:53:02 -0800</created_on>
  <updated_at>2016-02-12 06:55:06 -0800</updated_at>
  <payment_terms/>
  <ship_to/>
  <notes/>
  <incoterm/>
  <emailed_at/>
  <ticket>-_okOhOQ6eeKHoSoTnKsWH6AP8</ticket>
  <vendor_salesorder/>
  <accepted_at/>
  <viewed_at/>
  <delivery_requested_at/>
  <insurance/>
  <shipping_account/>
  <shipping_method/>
  <fob/>
  <delivery_terms/>
  <currency/>
  <vendor>
    <id>41</id>
    <name>Arrow</name>
  </vendor>
  <purchase_items>
    <purchase_item>
      <id>5</id>
      <purchase_id>1</purchase_id>
      <vendor_id>41</vendor_id>
      <inventory_unit_id/>
      <quote_id/>
      <unit_id>2</unit_id>
      <unit_conversion_id/>
      <vendor_part_number_id/>
      <part_id>670</part_id>
      <part_revision_id>114</part_revision_id>
      <partnumber>000050</partnumber>
      <part_revision_name>A</part_revision_name>
      <manufacturer>AMP / Tyco</manufacturer>
      <manufacturer_pn>747844-2</manufacturer_pn>
      <quantity>1</quantity>
      <price/>
      <comment/>
      <received_quantity/>
      <received_at/>
      <vendor_promise_date/>
      <use_as_units/>
      <vendor_pn/>
      <position>1</position>
    </purchase_item>
  </purchase_items>
</purchase_order>

Params

Param name Description
api_token
required

Your API token.


Value: Must be a String
id
required

Available statuses: draft, pending, open, closed.


Value: Must be a number.