XML examples for OBS Requests and responses to and from the Higate HTTP API (Including DOI FIRST & STOP):



OBSRequest (Submitting an OBS request)


<Message>

   <Version Version="1.0"/>

   <Request Type="OBSRequest" RefNo="4">

        <UserID>ClientName</UserID>

        <Password>ClientPassword</Password>

        <OBSRequest Validity="00020000"

                   Flags="0">

             <Ticket Type="Mobile"

                           OBSService=""

                           Service=" SERVICE1"

                           SubService=""

                          ChargeAddr="0613177895"

                          Description=""

                           Value="100"/>

             <Subscr Started="2014-11-27 12:15:52"

                Category="C1OBSTest"

                Trigger=""/>

    </OBSRequest>

  </Request>

</Message>


OBSRequest (with FIRST parameter / New Subscriber)


<Message>

   <Version Version="1.0"/>

   <Request Type="OBSRequest" RefNo="4">

        <UserID>ClientName</UserID>

        <Password>ClientPassword</Password>

        <OBSRequest Validity="00020000

                           Flags="0">

             <Ticket Type="Mobile"

                           OBSService=""

                           Service=" SERVICE1"

                           SubService=""

                          ChargeAddr="0613177895"

                          Description=""

                           Value="100"/>

             <Subscr Started="2014-11-27 12:15:52 FIRST"

                Category="C1OBSTest

                Trigger=""/>

    </OBSRequest>

  </Request>

</Message>


OBSRequest (with STOP parameter / Subscription removal)


<Message>

   <Version Version="1.0"/>

   <Request Type="OBSRequest" RefNo="4">

        <UserID>ClientName</UserID>

        <Password>ClientPassword</Password>

        <OBSRequest Validity="00020000

                           Flags="0">

             <Ticket Type="Mobile"

                           OBSService=""

                           Service=" SERVICE1"

                           SubService=""

                          ChargeAddr="0613177895"

                          Description=""

                           Value="100"/>

             <Subscr Started="2014-11-27 12:15:52 STOP"

                Category="C1OBSTest

                Trigger=""/>

    </OBSRequest>

  </Request>

</Message>


OnOBSResponse (Status result for OBS Request - Vodacom)


<?xml version="1.0" ?>

<Message>

<Version Version="1.0"/>

<Response Type="OnOBSResponse" RefNo="3" SeqNo="2289859310">

<SystemID>Higate</SystemID>

<UserID>ClientLogin</UserID>

<Service>SERVICE1</Service>

<NetworkID>1</NetworkID>

<Network ID="1" MCC="655" MNC="010"/>

<Flags>0</Flags>

<ResultCode>9</ResultCode>

<ResultText>Pending</ResultText>

<ErrCode>0</ErrCode>

<ErrText></ErrText>

<OnOBSResponse Type="XML">

<OBS><Action>CONFIRMED</Action><Result>0</Result><ResultText>Success</ResultText><Param>

<BillingCode></BillingCode>

<AdultRating>0</AdultRating>

<Category>ProductName</Category>"

<Descr></Descr>

<ItemID></ItemID>

<RxSeqNo>46243614</RxSeqNo>

<Other>

<Vodacom>

<Subscr>

<Started>2014-07-29 14:54:13</Started>

</Subscr>

<Product Name= ProductName ' ID='2762' BillingFreq='Day' ServiceID='INT02762' Activation='' />

</Vodacom>

</Other>

</Param>

<Subscr Category= ‘ProductName' Started='2014-07-29 14:54:13' />

</OBS>

</OnOBSResponse>

</Response>


OnOBSResponse (Status result for OBS Request - MTN)


<?xml version="1.0" ?>

<Message>

<Version Version="1.0"/>

<Response Type="OnOBSResponse" RefNo="3" SeqNo="2289859310">">

<SystemID>Higate</SystemID>

<UserID>ClientLogin</UserID>

<Service>SERVICE1</Service>

<NetworkID>2</NetworkID>

<Network ID="2" MCC="655" MNC="010"/>

<Flags>0</Flags>

<ResultCode>9</ResultCode>

<ResultText>Pending</ResultText>

<ErrCode>0</ErrCode>

<ErrText></ErrText>

<OnOBSResponse Type="XML">

<OBS><Action>CONFIRMED</Action><Result>260</Result><ResultText>Success</ResultText><Param>

<BillingCode></BillingCode>

<AdultRating>0</AdultRating>

<Category>ProductName</Category>

<Descr></Descr>

<ItemID></ItemID>

<RxSeqNo>46243725</RxSeqNo>

<Other>

<MTN>

<ContentID></ContentID>

<Started>2013-08-14</Started>

<Value>250</Value>

<ServiceInterval>Daily</ServiceInterval>

<ContentTypeID>023</ContentTypeID>

<ProductID>2762</ProductID>

<Description>Product Description</Description>

<MaxBillAmmount>500</MaxBillAmmount>

<ContentToken>13835456343301309744</ContentToken>

<Action>DEBIT</Action>

</MTN>

</Other>

</Param>

<Subscr Category= ‘ProductName' Started='2013-08-14 00:00:00' />

</OBS>

</OnOBSResponse>

</Response>

</Message>


OnOBSResponse (Status result for OBS Request - CellC)


<?xml version="1.0" ?>

<Message>

<Version Version="1.0"/>

<Response Type="OnOBSResponse" RefNo="3" SeqNo="2289859310">

<SystemID>Higate</SystemID>

<UserID> ClientLogin</UserID>

<Service>SERVICE1</Service>

<NetworkID>3</NetworkID>

<Network ID="3" MCC="655" MNC="010"/>

<Flags>0</Flags>

<ResultCode>9</ResultCode>

<ResultText>Pending</ResultText>

<ErrCode>0</ErrCode>

<ErrText></ErrText>

<OnOBSResponse Type="XML">

<OBS><Action>CONFIRMED</Action><Result>260</Result><ResultText>Success</ResultText><Param>

<BillingCode></BillingCode>

<AdultRating>0</AdultRating>

<Category>ProductName</Category>

<Descr></Descr>

<ItemID></ItemID>

<RxSeqNo>0</RxSeqNo>

<Other>

<CellC>

<ProviderID>INTEG</ProviderID>

<ChargeCode>INTEG012</ChargeCode>

<ContentID></ContentID>

<Product Name='MobyApps plus Whatsapp' ID='2931' BillingFreq='Daily' ServiceID='330737862' Activation='2014-11-13' /></CellC>

</Other>

</Param>

<Subscr Backbill='' Category= ‘ProductName ' Started='2014-11-13 12:01:25' Trigger='SMSMO:19555629' />

</OBS>

</OnOBSResponse>

</Response>

</Message>


OnOBSResponse (Status result for OBS Request - Telkom Mobile)


<?xml version="1.0" ?>

<Message>

<Version Version="1.0"/>

<Response Type="OnOBSResponse" RefNo="3" SeqNo="2289859310">

<SystemID>Higate</SystemID>

<UserID>doiTest</UserID>

<Service>DOITEST</Service>

<NetworkID>15</NetworkID>

<Network ID="15" MCC="655" MNC="010"/>

<Flags>0</Flags>

<ResultCode>9</ResultCode>

<ResultText>Pending</ResultText>

<ErrCode>0</ErrCode>

<ErrText></ErrText>

<OnOBSResponse Type="XML">

<OBS><Action>CONFIRMED</Action><Result>260</Result><ResultText>Success</ResultText><Param>

<BillingCode></BillingCode>

<AdultRating>0</AdultRating>

<Category> ProductName</Category

<Descr></Descr>

<ItemID></ItemID>

<RxSeqNo>0</RxSeqNo>

<Other>

<TelkomMobile>

<ProviderID></ProviderID>

<ContentID></ContentID>

<Product Name='MobyApps plus Whatsapp by repl' ID='2931' BillingFreq='RecurringDaily' ServiceID='OI2014112500374023' Value='600' /></TelkomMobile>

</Other>

</Param>

<Subscr Backbill='' Category='1278 Mobigames SC 43089' Started='2014-11-25 12:02:11' Trigger='SMSMO:19659606' />

</OBS>

</OnOBSResponse>

</Response>

</Message>