getTickets()
TicketList getTickets(string usn)
This method returns a list of all tickets for a specified account.
Parameters
- usn
- Format: string
Results
This method returns a list of all tickets for a specified account USN.
There are no messages defined by this method.
Example: A returned TicketList XML document
This example shows a TicketList XML document when account USN 2142423223 is given as a parameter. The values in the nested <Objects> element, in the <Properties> element, display the name and value of custom fields, which are set for each type of ticket.
<TicketList xmlns="http://xml.inomial.com/smile/2.xsd" xmlns="http://ws.inomial.com/smile.2">
<Ticket>
<Number>336</Number>
<Subject>Test ticket</Subject>
<TicketType key="382">Testing website ticket</TicketType>
<TicketStatus key="1">New</TicketStatus>
<AccountUSN>2142423215</AccountUSN>
<SubscriptionUSN>2142423223</SubscriptionUSN>
<Body>Test ticket</Body>
<Created>2014-08-12T13:56:43.863+10:00</Created>
<Opened>2014-08-12T13:56:43.953+10:00</Opened>
<Properties>
<Object>
<String name="supportIssueType">Other</String>
</Object>
</Properties>
</Ticket>
<Ticket>
<Number>335</Number>
<Subject>EziDebit Refund</Subject>
<TicketType key="397">Ezidebit refund</TicketType>
<TicketStatus key="1">New</TicketStatus>
<AccountUSN>2142423215</AccountUSN>
<Created>2014-08-12T13:56:14.724+10:00</Created>
<Opened>2014-08-12T13:56:14.857+10:00</Opened>
<Properties>
<Object>
<String name="TransactionNumber">21579610</String>
<String name="EziDebitReference">651398</String>
<String name="FetchEmailAddress">joe@example.com</String>
<Decimal name="RefundAmount">167.00</Decimal>
</Object>
</Properties>
</Ticket>
</TicketList>
Faults
NoSuchItemExceptionThis fault is returned when the specified USN does not match an account.
Java client syntax
java -cp build/smilewsv2-client.jar [options]
com.inomial.smile.client.v2.examples.GetTickets usn
- usn
- Purpose: Specifies the account USN.
Note: For more information about the Java client and the options it
accepts, see Java client syntax.