getSelfServePrepaidList()
SelfServePrepaidList getSelfServePrepaidList(string usn)
This method returns a list of the prepaid blocks a subscription is eligible to purchase.
For example, the prepaid blocks available may vary by duration or download limit, and the prepaid blocks a subscription is eligible to buy may vary by business unit, account or location.
Parameters
- usn
- Format: string
Results
This method returns a SelfServePrepaidList XML document with information about the prepaid a subscription can purchase, such as the rate, currency and code of each block.
There are no messages defined by this method.
Example: A returned SelfServePrepaidList XML document
This example shows a returned SelfServePrepaidList XML document with one available prepaid block.
<SelfServePrepaidList xmlns="http://xml.inomial.com/smile/2.xsd">
<PrepaidDescription>
<PrepaidCode>1 hr</PrepaidCode>
<Description>1 hour block</Description>
<DisplayAmount>$2.23</DisplayAmount>
<Rate>2.2314</Rate>
<Currency>AUD</Currency>
</PrepaidDescription>
</SelfServePrepaidList>
Faults
PrepaidExceptionThis fault is returned when the subscription does not support self-serve prepaid, or the caller does not have permission to perform this action.
Java client syntax
java -cp build/smilewsv2-client.jar [options] com.inomial.smile.client.v2.examples.GetSelfServePrepaidList usn
- usn
- Purpose: Specifies the USN of the subscription to return the available prepaid blocks for.