listPurchaseOrders()

PurchaseOrderList listPurchaseOrders(string account)

This method returns a list of purchase orders for a given account, including expired and deprecated purchase orders.

Parameters

account
Format: string
Purpose: Specifies the account USN.

Results

This method returns a PurchaseOrderList XML document for the given account.

There are no messages defined by this method.

Example: A returned PurchaseOrderList XML document

This example shows a PurchaseOrderList XML document containing information about two purchase orders for account 2142426747.

<PurchaseOrderList xmlns="http://xml.inomial.com/smile/2.xsd">
  <PurchaseOrder>
    <AccountUSN>2142426747</AccountUSN>
    <Number>PO123456</Number>
    <ExpiryDate>2015-06-24+10:00</ExpiryDate>
    <Object>
      <String name="purchase_number_note">Note here</String>
    </Object>
    <Subscriptions/>
    <ExclusiveInvoice>true</ExclusiveInvoice>
    <PurchaseOrderId>b3144086-ad4b-4fbe-b9f7-27dca561e7aa</PurchaseOrderId>
    <Deprecated>false</Deprecated>
  </PurchaseOrder>
  <PurchaseOrder>
    <AccountUSN>2142426747</AccountUSN>
    <Number>PO987712</Number>
    <Object/>
    <Subscriptions>
      <SubscriptionUSN>2142428503</SubscriptionUSN>
    </Subscriptions>
    <ExclusiveInvoice>false</ExclusiveInvoice>
    <PurchaseOrderId>2be191ff-9152-451f-8cb5-53c6633464f2</PurchaseOrderId>
    <Deprecated>false</Deprecated>
  </PurchaseOrder>
</PurchaseOrderList>

Faults

NoSuchItemException

This fault is returned when an account with the given USN can not be found.

Java client syntax

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