OrderApproved

Smile emits this message when an order is approved. The order then proceeds to the next stage of the order process, for example, completion or provisioning.

Smile automatically approves orders that do not require approval.

Message header

The following table lists the parameters in the OrderApproved message header.

Table 1. OrderApproved header parameters
Parameter Type Values
number string The unique order number that identifies the order
accountUsn string The unique subscriber number for the account the order is raised against
smileMessageType string "OrderApproved"

Message body

The message body contains the <Order> element and has the following format:
{http://xml.inomial.com/smile/2.xsd}Order

Example: The <Order> element

This example shows an Order XML document that contains the <Order> element.

<Order xmlns="http://xml.inomial.com/smile/2.xsd">
  <Package>192</Package>
  <RequiresApproval>false</RequiresApproval>
  <AccountUSN>1204921324</AccountUSN>
  <PackagePlan>812</PackagePlan>
  <OrderForm>
    <Object>
      <String name="username">+61355501256</String>
      <String name="contactGiven">Joe</String>
      <String name="contactFamily">Smith</String>
      <Integer name="phoneLines">12</Integer>
    </Object>
  </OrderForm>
</Order>