getPurchaseOrder()

PurchaseOrder getPurchaseOrder(string purchaseOrderId)

This method returns the account purchase order for the given ID.

Parameters

purchaseOrderId
Format: string
Purpose: Specifies the ID of the account purchase order.

Results

This method returns a PurchaseOrder XML document containing the account purchase order details.

There are no messages defined by this method.

Example: A returned PurchaseOrder XML document

This example shows a PurchaseOrder XML document containing details for purchase order ID b3144086-ad4b-4fbe-b9f7-27dca561e7aa.

<PurchaseOrder xmlns="http://xml.inomial.com/smile/2.xsd">
  <AccountUSN>2142426747</AccountUSN>
  <Number>PO123456</Number>
  <ExpiryDate>2015-06-24+10:00</ExpiryDate>
  <Object>
    <String name="purchase_number_note">Note here</String>
  </Object>
  <Subscriptions>
    <SubscriptionUSN>2142426903</SubscriptionUSN>
  </Subscriptions>
  <ExclusiveInvoice>false</ExclusiveInvoice>
  <PurchaseOrderId>b3144086-ad4b-4fbe-b9f7-27dca561e7aa</PurchaseOrderId>
  <Company>1</Company>
  <Deprecated>false</Deprecated>
</PurchaseOrder> 

Faults

NoSuchItemException

This fault is returned when a purchase order with the given ID does not exist.

Java client syntax

java -cp build/smilewsv2-client.jar [options]
 com.inomial.smile.client.v2.examples.GetPurchaseOrder purchaseOrderId
purchaseOrderId
Purpose: Specifies the ID of the account purchase order.
Note: For more information about the Java client and the options it accepts, see Java client syntax.