Plan Manager - GetSoldPlanDetails

Version: 7C

HC7 Build: 7.00.0012 and later

API Build: 1.00.0001 and later

 

Plan Manager - GetSoldPlanDetails gets details of a specified sold plan instance. This web service call can be made as http://your-domain.com/HC7API/PlanManager.asmx?op=GetSoldPlanDetails.

 

Input Parameters

 

 

Note : SoldPlanID the unique identification number, can be retrieved using GetSoldPlans.

 

 

Output Parameters

 

 

Sample Optional Parameters

 

<Parameters>

<Parameter Name = "Language">French</Parameter>

</Parameters>

 

Sample SOAP Request

  

 

POST /HC7API/PlanManager.asmx HTTP/1.1

Host: your-domain.com

Content-Type: text/xml; charset=utf-8

Content-Length: length

SOAPAction: "http://tempuri.org/GetSoldPlanDetails"

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

  <soap:Body>

    <GetSoldPlanDetails xmlns="http://tempuri.org/">

      <HostUserName>host</HostUserName>

      <HostPassword>host123</HostPassword>

      <OwnerName>david</OwnerName>

      <SoldPlanID>12</SoldPlanID>

      <OptionalParam>xml</OptionalParam>

    </GetSoldPlanDetails>

  </soap:Body>

</soap:Envelope>
 

 

Sample HTTP Request

 

 

POST /HC7API/PlanManager.asmx/GetSoldPlanDetails HTTP/1.1

Host: your-domain.com

Content-Type: application/x-www-form-urlencoded

Content-Length: length

HostUserName=host&HostPassword=host123&OwnerName=david&SoldPlanID=12&OptionalParam=xml
 

 

Sample C# Code

 

 

public PlanManager.Response GetSoldPlanDetails(string strHostUserName, string strHostPassword, string strOwnerName, int nSoldPlanID)

{

         try

         {

                   PlanManager.PlanManager oPlan = new PlanManager.PlanManager();

                   PlanManager..Response oResponse = new PlanManager.Response();

                                

                   oResponse = oPlan.GetSoldPlanDetails(strHostUserName, strHostPassword, strOwnerName,  

                   nSoldPlanID,null);

                    

         }

         catch

         {

         }

         return oResponse;

}
 

 

Sample Response

 

 

<Response>

    <Method>GetSoldPlanDetails</Method>

    <Status>true</Status>

    <ErrorCode>74900001</ErrorCode>

    <ErrorDescription>Operation completed successfully</ErrorDescription>

    <Result>

        <SoldPlanDetails xmlns="">

            <SoldPlanID>12</SoldPlanID>

            <PlanID>2</PlanID>

            <PlanName>MyPlan</PlanName>

            <PlanDescription>This is my New Plan</PlanDescription>

            <CancellationPolicy>Canel it</CancellationPolicy>

            <Platform>Windows</Platform>

            <Status>Available</Status>

            <FinancialDetails>

                <SetupPrice>10.00</SetupPrice>

                <SetupDiscount>2%</SetupDiscount>

                <NetSetupPrice>0</NetSetupPrice>

                                  .......

                                  .......

                                  .......

            </FinancialDetails>

            <PlanResources>

                <RecordRow>

                    <ResourceID>6</ResourceID>

                    <ResourceName>User Accounts</ResourceName>

                    <ResourceName>Unlimited</ResourceName>

                </RecordRow>

                         .......

                         .......

                         .......

            </PlanResources>

            <AddOns>

                <RecordRow>

                    <ResourceName>Domains</ResourceName>

                    <Quantity>1</Quantity>

                </RecordRow>

            </AddOns>

        </SoldPlanDetails>

    </Result>

</Response>