PartnerSvc


Click here for a complete list of operations.

AddOfficeLocation

Adds an office location

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 /partnerservices/partnersvc.asmx HTTP/1.1
Host: eprescribe.allscripts.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://eprescribe.allscripts.com/partnerservices/AddOfficeLocation"

<?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:Header>
    <AuthHeader xmlns="https://eprescribe.allscripts.com/partnerservices/">
      <PartnerID>string</PartnerID>
      <UserName>string</UserName>
      <Password>string</Password>
    </AuthHeader>
  </soap:Header>
  <soap:Body>
    <AddOfficeLocation xmlns="https://eprescribe.allscripts.com/partnerservices/">
      <request>
        <LicenseID xmlns="https://eprescribe.allscripts.com/">string</LicenseID>
        <PartnerID xmlns="https://eprescribe.allscripts.com/">string</PartnerID>
        <OfficeName xmlns="https://eprescribe.allscripts.com/">string</OfficeName>
        <Address1 xmlns="https://eprescribe.allscripts.com/">string</Address1>
        <Address2 xmlns="https://eprescribe.allscripts.com/">string</Address2>
        <City xmlns="https://eprescribe.allscripts.com/">string</City>
        <State xmlns="https://eprescribe.allscripts.com/">string</State>
        <ZipCode xmlns="https://eprescribe.allscripts.com/">string</ZipCode>
        <PhoneAreaCode xmlns="https://eprescribe.allscripts.com/">string</PhoneAreaCode>
        <PhoneNumber xmlns="https://eprescribe.allscripts.com/">string</PhoneNumber>
        <FaxAreaCode xmlns="https://eprescribe.allscripts.com/">string</FaxAreaCode>
        <FaxNumber xmlns="https://eprescribe.allscripts.com/">string</FaxNumber>
        <TimeZone xmlns="https://eprescribe.allscripts.com/">string</TimeZone>
        <AllowAdmin xmlns="https://eprescribe.allscripts.com/">boolean</AllowAdmin>
        <Preferences xmlns="https://eprescribe.allscripts.com/">
          <Preferences>
            <Name>string</Name>
            <Value>string</Value>
          </Preferences>
          <Preferences>
            <Name>string</Name>
            <Value>string</Value>
          </Preferences>
        </Preferences>
      </request>
    </AddOfficeLocation>
  </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>
    <AddOfficeLocationResponse xmlns="https://eprescribe.allscripts.com/partnerservices/">
      <AddOfficeLocationResult>
        <LicenseID xmlns="https://eprescribe.allscripts.com/">string</LicenseID>
        <PartnerID xmlns="https://eprescribe.allscripts.com/">string</PartnerID>
        <Errors xmlns="https://eprescribe.allscripts.com/">
          <Errors>
            <Type>CRITICAL or WARNING or NONE</Type>
            <Messages>string</Messages>
          </Errors>
          <Errors>
            <Type>CRITICAL or WARNING or NONE</Type>
            <Messages>string</Messages>
          </Errors>
        </Errors>
        <OfficeID xmlns="https://eprescribe.allscripts.com/">int</OfficeID>
        <OfficeName xmlns="https://eprescribe.allscripts.com/">string</OfficeName>
        <Address1 xmlns="https://eprescribe.allscripts.com/">string</Address1>
        <Address2 xmlns="https://eprescribe.allscripts.com/">string</Address2>
        <City xmlns="https://eprescribe.allscripts.com/">string</City>
        <State xmlns="https://eprescribe.allscripts.com/">string</State>
        <ZipCode xmlns="https://eprescribe.allscripts.com/">string</ZipCode>
        <PhoneAreaCode xmlns="https://eprescribe.allscripts.com/">string</PhoneAreaCode>
        <PhoneNumber xmlns="https://eprescribe.allscripts.com/">string</PhoneNumber>
        <FaxAreaCode xmlns="https://eprescribe.allscripts.com/">string</FaxAreaCode>
        <FaxNumber xmlns="https://eprescribe.allscripts.com/">string</FaxNumber>
        <Active xmlns="https://eprescribe.allscripts.com/">string</Active>
        <TimeZone xmlns="https://eprescribe.allscripts.com/">string</TimeZone>
        <AllowAdmin xmlns="https://eprescribe.allscripts.com/">boolean</AllowAdmin>
        <Preferences xmlns="https://eprescribe.allscripts.com/">
          <Preferences>
            <Name>string</Name>
            <Value>string</Value>
          </Preferences>
          <Preferences>
            <Name>string</Name>
            <Value>string</Value>
          </Preferences>
        </Preferences>
        <IsSuccessful xmlns="https://eprescribe.allscripts.com/">boolean</IsSuccessful>
      </AddOfficeLocationResult>
    </AddOfficeLocationResponse>
  </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 /partnerservices/partnersvc.asmx HTTP/1.1
Host: eprescribe.allscripts.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:Header>
    <AuthHeader xmlns="https://eprescribe.allscripts.com/partnerservices/">
      <PartnerID>string</PartnerID>
      <UserName>string</UserName>
      <Password>string</Password>
    </AuthHeader>
  </soap12:Header>
  <soap12:Body>
    <AddOfficeLocation xmlns="https://eprescribe.allscripts.com/partnerservices/">
      <request>
        <LicenseID xmlns="https://eprescribe.allscripts.com/">string</LicenseID>
        <PartnerID xmlns="https://eprescribe.allscripts.com/">string</PartnerID>
        <OfficeName xmlns="https://eprescribe.allscripts.com/">string</OfficeName>
        <Address1 xmlns="https://eprescribe.allscripts.com/">string</Address1>
        <Address2 xmlns="https://eprescribe.allscripts.com/">string</Address2>
        <City xmlns="https://eprescribe.allscripts.com/">string</City>
        <State xmlns="https://eprescribe.allscripts.com/">string</State>
        <ZipCode xmlns="https://eprescribe.allscripts.com/">string</ZipCode>
        <PhoneAreaCode xmlns="https://eprescribe.allscripts.com/">string</PhoneAreaCode>
        <PhoneNumber xmlns="https://eprescribe.allscripts.com/">string</PhoneNumber>
        <FaxAreaCode xmlns="https://eprescribe.allscripts.com/">string</FaxAreaCode>
        <FaxNumber xmlns="https://eprescribe.allscripts.com/">string</FaxNumber>
        <TimeZone xmlns="https://eprescribe.allscripts.com/">string</TimeZone>
        <AllowAdmin xmlns="https://eprescribe.allscripts.com/">boolean</AllowAdmin>
        <Preferences xmlns="https://eprescribe.allscripts.com/">
          <Preferences>
            <Name>string</Name>
            <Value>string</Value>
          </Preferences>
          <Preferences>
            <Name>string</Name>
            <Value>string</Value>
          </Preferences>
        </Preferences>
      </request>
    </AddOfficeLocation>
  </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>
    <AddOfficeLocationResponse xmlns="https://eprescribe.allscripts.com/partnerservices/">
      <AddOfficeLocationResult>
        <LicenseID xmlns="https://eprescribe.allscripts.com/">string</LicenseID>
        <PartnerID xmlns="https://eprescribe.allscripts.com/">string</PartnerID>
        <Errors xmlns="https://eprescribe.allscripts.com/">
          <Errors>
            <Type>CRITICAL or WARNING or NONE</Type>
            <Messages>string</Messages>
          </Errors>
          <Errors>
            <Type>CRITICAL or WARNING or NONE</Type>
            <Messages>string</Messages>
          </Errors>
        </Errors>
        <OfficeID xmlns="https://eprescribe.allscripts.com/">int</OfficeID>
        <OfficeName xmlns="https://eprescribe.allscripts.com/">string</OfficeName>
        <Address1 xmlns="https://eprescribe.allscripts.com/">string</Address1>
        <Address2 xmlns="https://eprescribe.allscripts.com/">string</Address2>
        <City xmlns="https://eprescribe.allscripts.com/">string</City>
        <State xmlns="https://eprescribe.allscripts.com/">string</State>
        <ZipCode xmlns="https://eprescribe.allscripts.com/">string</ZipCode>
        <PhoneAreaCode xmlns="https://eprescribe.allscripts.com/">string</PhoneAreaCode>
        <PhoneNumber xmlns="https://eprescribe.allscripts.com/">string</PhoneNumber>
        <FaxAreaCode xmlns="https://eprescribe.allscripts.com/">string</FaxAreaCode>
        <FaxNumber xmlns="https://eprescribe.allscripts.com/">string</FaxNumber>
        <Active xmlns="https://eprescribe.allscripts.com/">string</Active>
        <TimeZone xmlns="https://eprescribe.allscripts.com/">string</TimeZone>
        <AllowAdmin xmlns="https://eprescribe.allscripts.com/">boolean</AllowAdmin>
        <Preferences xmlns="https://eprescribe.allscripts.com/">
          <Preferences>
            <Name>string</Name>
            <Value>string</Value>
          </Preferences>
          <Preferences>
            <Name>string</Name>
            <Value>string</Value>
          </Preferences>
        </Preferences>
        <IsSuccessful xmlns="https://eprescribe.allscripts.com/">boolean</IsSuccessful>
      </AddOfficeLocationResult>
    </AddOfficeLocationResponse>
  </soap12:Body>
</soap12:Envelope>