SubscriptionPlanChanged

Smile emits this message when a new plan schedule item on the subscription's accounting plan schedule becomes active, either because its start date and time has elapsed or due to a modification to the plan schedule.

Message header

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

Table 1. SubscriptionPlanChanged header parameters
Parameter Type Values
sid integer The service ID
usn string The unique subscription ID number for the subscription
smileMessageType string "SubscriptionPlanChanged"
The message body contains the <SubscriptionPlanChanged> element and has the following format:
{http://xml.inomial.com/smile/2.xsd}SubscriptionPlanChanged

Example: The <SubscriptionPlanChanged> element

This example shows a SubscriptionPlanChanged XML document that contains the <SubscriptionPlanChanged> element.

<SubscriptionPlanChanged xmlns="http://xml.inomial.com/smile/2.xsd">
  <Subscription>
  <USN>2142426762</USN>
  <SID>170</SID>
  <ServiceName>Test service 170</ServiceName>
  <Parent>1000000008</Parent>
  <Properties>
    <Object>
      <String name="username">joe@example.com</String>
      <Boolean name="billPrintName">false</Boolean>
      <Boolean name="streetPrintName">true</Boolean>
    </Object>
  </Properties>
  <ProvisionStatus>Provisioned</ProvisionStatus>
  <SuspendStatus>Active</SuspendStatus>
  <ActivateStatus>Activated</ActivateStatus>
  <EnableStatus>Enabled</EnableStatus>
  </Subscription>
  <PlanScheduleItem>
    <PlanCode>tp170</PlanCode>
    <PlanScheduleType>1</PlanScheduleType>
    <Start>2012-08-08T00:00:00.000+10:00</Start>
  </PlanScheduleItem>
</SubscriptionPlanChanged>