GetServerTimeResponse getServerTime(
CPAuth auth
);
Input
Parameter | Type | Optional | Comment |
auth | CPAuth | no | Authentication data |
Output
Method returns a GetServerTimeResponse
Description
This method is for testing or availability checks only. It will return the current time from the Channel Pilot Pro API-Server.
Example
Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v4="http://v4_2.seller.api.channelpilot.com/">
<soapenv:Header/>
<soapenv:Body>
<v4:getServerTime>
<auth>
<merchantId>xxxxxxxxxx</merchantId>
<shopToken>xxxxxxxxxx</shopToken>
</auth>
</v4:getServerTime>
</soapenv:Body>
</soapenv:Envelope>
Response
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:getServerTimeResponse xmlns:ns1="http://v4_2.seller.api.channelpilot.com/">
<return>
<header>
<resultCode>200</resultCode>
<resultMessage/>
</header>
<localTime>2019-02-04T14:18:25+01:00</localTime>
</return>
</ns1:getServerTimeResponse>
</soap:Body>
</soap:Envelope>
