1. Home
  2. Corporate Node
  3. SOAP requests
  4. setGeolocationInfo

setGeolocationInfo

Operation setGeolocationInfo sets geolocation data. Json with geolocation data should be passed in geolocationInfo parameter. Before this info will be provided, default localization (ip based) will be used.

Example SOAP request:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="ns1">
   <soapenv:Header/>
   <soapenv:Body>
      <ns1:setGeolocationInfo soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <geolocationInfo xsi:type="xsd:string">
         {
    "Lng": "20.9800044",
    "Lat": "52.2205852",
    "Accuracy": "72",
    "Time": "1381747098000",
    "Alt": "0",
    "Src": "POS",
    "Provider":"STATIC" 
}
         </geolocationInfo>
      </ns1:setGeolocationInfo>
   </soapenv:Body>
</soapenv:Envelope>

Example SOAP response:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="ns1">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <ns1:setGeolocationInfoResponse>
         <return>
            <requestStatus>SUCCESS</requestStatus>
            <requestStatusDescription>Request succeeded.</requestStatusDescription>
         </return>
      </ns1:setGeolocationInfoResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Request parameters:

parameter type description
geolocationInfo string merchant’s geolocation data in JSON
shopId string shop id

Response parameters:

name type description
requestStatus string result of request
requestStatusDescription string status description
Was this article helpful to you? Yes No

How can we help?