OrderEntry


Click here for a complete list of operations.

CreateOrderEntry

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /OrderEntry.asmx HTTP/1.1
Host: uatorderqueue.trugreen.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/CreateOrderEntry"

<?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>
    <CreateOrderEntry xmlns="http://tempuri.org/">
      <OrderData>
        <User>
          <UserID>string</UserID>
          <Password>string</Password>
          <System>string</System>
        </User>
        <SystemComments>string</SystemComments>
        <CallbackServiceUri>string</CallbackServiceUri>
        <OrderIdRef>string</OrderIdRef>
        <OrderGroupRef>string</OrderGroupRef>
        <BranchNum>string</BranchNum>
        <TotalSaleAmount>decimal</TotalSaleAmount>
        <Employee>
          <EmployeeName>string</EmployeeName>
          <EmployeeUsername>string</EmployeeUsername>
          <EmployeeID>string</EmployeeID>
          <EmployeeBU>string</EmployeeBU>
          <EmployeeDivision>string</EmployeeDivision>
          <EmployeeRegion>string</EmployeeRegion>
        </Employee>
        <Lead>
          <SalesCallID>string</SalesCallID>
          <LeadType>string</LeadType>
          <TargetProblem>string</TargetProblem>
          <LeadSource>string</LeadSource>
          <LeadSubSource>string</LeadSubSource>
          <LeadCaptureSource>string</LeadCaptureSource>
          <MediaSrc>string</MediaSrc>
          <PartnerLead>string</PartnerLead>
          <LeadNotes>string</LeadNotes>
          <WhyTrugreen>string</WhyTrugreen>
          <Disposition>string</Disposition>
        </Lead>
        <Services>
          <Service>
            <ProposalID>string</ProposalID>
            <ProductDBID>int</ProductDBID>
            <ProductDesc>string</ProductDesc>
            <ServiceLine>string</ServiceLine>
            <ServiceName>string</ServiceName>
            <TemplateCode>string</TemplateCode>
            <PropertySize xsi:nil="true" />
            <IsScheduled>string</IsScheduled>
            <ScheduleInfo xsi:nil="true" />
            <PricingInfo xsi:nil="true" />
            <PaymentCollection xsi:nil="true" />
            <Frequency>string</Frequency>
            <SalesAgreementNotes>string</SalesAgreementNotes>
            <OutputType>string</OutputType>
            <CustomNumVisits>string</CustomNumVisits>
            <CustomServicePattern>string</CustomServicePattern>
            <CustomServicePatternType>string</CustomServicePatternType>
            <NYContractExpirationDate>dateTime</NYContractExpirationDate>
          </Service>
          <Service>
            <ProposalID>string</ProposalID>
            <ProductDBID>int</ProductDBID>
            <ProductDesc>string</ProductDesc>
            <ServiceLine>string</ServiceLine>
            <ServiceName>string</ServiceName>
            <TemplateCode>string</TemplateCode>
            <PropertySize xsi:nil="true" />
            <IsScheduled>string</IsScheduled>
            <ScheduleInfo xsi:nil="true" />
            <PricingInfo xsi:nil="true" />
            <PaymentCollection xsi:nil="true" />
            <Frequency>string</Frequency>
            <SalesAgreementNotes>string</SalesAgreementNotes>
            <OutputType>string</OutputType>
            <CustomNumVisits>string</CustomNumVisits>
            <CustomServicePattern>string</CustomServicePattern>
            <CustomServicePatternType>string</CustomServicePatternType>
            <NYContractExpirationDate>dateTime</NYContractExpirationDate>
          </Service>
        </Services>
        <Party>
          <PartyID>int</PartyID>
          <Title>string</Title>
          <FirstName>string</FirstName>
          <LastName>string</LastName>
          <Email>string</Email>
          <ServiceAddress>
            <AddressID>string</AddressID>
            <AddressLine1>string</AddressLine1>
            <AddressLine2>string</AddressLine2>
            <City>string</City>
            <State>string</State>
            <Zip>string</Zip>
          </ServiceAddress>
          <BillingAddress>
            <AddressID>string</AddressID>
            <AddressLine1>string</AddressLine1>
            <AddressLine2>string</AddressLine2>
            <City>string</City>
            <State>string</State>
            <Zip>string</Zip>
          </BillingAddress>
          <Phones>
            <string>string</string>
            <string>string</string>
          </Phones>
          <HouseInfo>
            <GrassType>string</GrassType>
            <LawnRating>string</LawnRating>
            <GateCode>string</GateCode>
            <LockedGate>string</LockedGate>
            <OutdoorPet>string</OutdoorPet>
            <SprinklerSystem>string</SprinklerSystem>
            <ElectricFence>string</ElectricFence>
            <Style>string</Style>
            <Color>string</Color>
            <Exterior>string</Exterior>
          </HouseInfo>
          <PaperlessBilling>boolean</PaperlessBilling>
          <PreServiceNotification>string</PreServiceNotification>
          <NotificationType>string</NotificationType>
          <SameDayServiceNotification>string</SameDayServiceNotification>
          <PPDiscountPercentage>decimal</PPDiscountPercentage>
          <MonthlyBillingFlag>boolean</MonthlyBillingFlag>
          <MonthlyBillingDay>int</MonthlyBillingDay>
          <ServiceTicket>string</ServiceTicket>
        </Party>
        <ClickpointData>
          <Username>string</Username>
          <ExistingLeadUID>long</ExistingLeadUID>
          <MatchingLeadUIDs>
            <long>long</long>
            <long>long</long>
          </MatchingLeadUIDs>
        </ClickpointData>
        <SalesChannel>string</SalesChannel>
        <ContractGroup>string</ContractGroup>
        <CaptureContract>string</CaptureContract>
      </OrderData>
    </CreateOrderEntry>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?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>
    <CreateOrderEntryResponse xmlns="http://tempuri.org/">
      <CreateOrderEntryResult>
        <TransactionID>long</TransactionID>
        <FlaggedForAudit>boolean</FlaggedForAudit>
      </CreateOrderEntryResult>
    </CreateOrderEntryResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /OrderEntry.asmx HTTP/1.1
Host: uatorderqueue.trugreen.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <CreateOrderEntry xmlns="http://tempuri.org/">
      <OrderData>
        <User>
          <UserID>string</UserID>
          <Password>string</Password>
          <System>string</System>
        </User>
        <SystemComments>string</SystemComments>
        <CallbackServiceUri>string</CallbackServiceUri>
        <OrderIdRef>string</OrderIdRef>
        <OrderGroupRef>string</OrderGroupRef>
        <BranchNum>string</BranchNum>
        <TotalSaleAmount>decimal</TotalSaleAmount>
        <Employee>
          <EmployeeName>string</EmployeeName>
          <EmployeeUsername>string</EmployeeUsername>
          <EmployeeID>string</EmployeeID>
          <EmployeeBU>string</EmployeeBU>
          <EmployeeDivision>string</EmployeeDivision>
          <EmployeeRegion>string</EmployeeRegion>
        </Employee>
        <Lead>
          <SalesCallID>string</SalesCallID>
          <LeadType>string</LeadType>
          <TargetProblem>string</TargetProblem>
          <LeadSource>string</LeadSource>
          <LeadSubSource>string</LeadSubSource>
          <LeadCaptureSource>string</LeadCaptureSource>
          <MediaSrc>string</MediaSrc>
          <PartnerLead>string</PartnerLead>
          <LeadNotes>string</LeadNotes>
          <WhyTrugreen>string</WhyTrugreen>
          <Disposition>string</Disposition>
        </Lead>
        <Services>
          <Service>
            <ProposalID>string</ProposalID>
            <ProductDBID>int</ProductDBID>
            <ProductDesc>string</ProductDesc>
            <ServiceLine>string</ServiceLine>
            <ServiceName>string</ServiceName>
            <TemplateCode>string</TemplateCode>
            <PropertySize xsi:nil="true" />
            <IsScheduled>string</IsScheduled>
            <ScheduleInfo xsi:nil="true" />
            <PricingInfo xsi:nil="true" />
            <PaymentCollection xsi:nil="true" />
            <Frequency>string</Frequency>
            <SalesAgreementNotes>string</SalesAgreementNotes>
            <OutputType>string</OutputType>
            <CustomNumVisits>string</CustomNumVisits>
            <CustomServicePattern>string</CustomServicePattern>
            <CustomServicePatternType>string</CustomServicePatternType>
            <NYContractExpirationDate>dateTime</NYContractExpirationDate>
          </Service>
          <Service>
            <ProposalID>string</ProposalID>
            <ProductDBID>int</ProductDBID>
            <ProductDesc>string</ProductDesc>
            <ServiceLine>string</ServiceLine>
            <ServiceName>string</ServiceName>
            <TemplateCode>string</TemplateCode>
            <PropertySize xsi:nil="true" />
            <IsScheduled>string</IsScheduled>
            <ScheduleInfo xsi:nil="true" />
            <PricingInfo xsi:nil="true" />
            <PaymentCollection xsi:nil="true" />
            <Frequency>string</Frequency>
            <SalesAgreementNotes>string</SalesAgreementNotes>
            <OutputType>string</OutputType>
            <CustomNumVisits>string</CustomNumVisits>
            <CustomServicePattern>string</CustomServicePattern>
            <CustomServicePatternType>string</CustomServicePatternType>
            <NYContractExpirationDate>dateTime</NYContractExpirationDate>
          </Service>
        </Services>
        <Party>
          <PartyID>int</PartyID>
          <Title>string</Title>
          <FirstName>string</FirstName>
          <LastName>string</LastName>
          <Email>string</Email>
          <ServiceAddress>
            <AddressID>string</AddressID>
            <AddressLine1>string</AddressLine1>
            <AddressLine2>string</AddressLine2>
            <City>string</City>
            <State>string</State>
            <Zip>string</Zip>
          </ServiceAddress>
          <BillingAddress>
            <AddressID>string</AddressID>
            <AddressLine1>string</AddressLine1>
            <AddressLine2>string</AddressLine2>
            <City>string</City>
            <State>string</State>
            <Zip>string</Zip>
          </BillingAddress>
          <Phones>
            <string>string</string>
            <string>string</string>
          </Phones>
          <HouseInfo>
            <GrassType>string</GrassType>
            <LawnRating>string</LawnRating>
            <GateCode>string</GateCode>
            <LockedGate>string</LockedGate>
            <OutdoorPet>string</OutdoorPet>
            <SprinklerSystem>string</SprinklerSystem>
            <ElectricFence>string</ElectricFence>
            <Style>string</Style>
            <Color>string</Color>
            <Exterior>string</Exterior>
          </HouseInfo>
          <PaperlessBilling>boolean</PaperlessBilling>
          <PreServiceNotification>string</PreServiceNotification>
          <NotificationType>string</NotificationType>
          <SameDayServiceNotification>string</SameDayServiceNotification>
          <PPDiscountPercentage>decimal</PPDiscountPercentage>
          <MonthlyBillingFlag>boolean</MonthlyBillingFlag>
          <MonthlyBillingDay>int</MonthlyBillingDay>
          <ServiceTicket>string</ServiceTicket>
        </Party>
        <ClickpointData>
          <Username>string</Username>
          <ExistingLeadUID>long</ExistingLeadUID>
          <MatchingLeadUIDs>
            <long>long</long>
            <long>long</long>
          </MatchingLeadUIDs>
        </ClickpointData>
        <SalesChannel>string</SalesChannel>
        <ContractGroup>string</ContractGroup>
        <CaptureContract>string</CaptureContract>
      </OrderData>
    </CreateOrderEntry>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <CreateOrderEntryResponse xmlns="http://tempuri.org/">
      <CreateOrderEntryResult>
        <TransactionID>long</TransactionID>
        <FlaggedForAudit>boolean</FlaggedForAudit>
      </CreateOrderEntryResult>
    </CreateOrderEntryResponse>
  </soap12:Body>
</soap12:Envelope>