Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
GET POST | /system/info |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class SystemInfoRequest
{
public String phoneFullNumber = null;
public String deviceId = null;
public Long requestUnixUTCTimeStamp = null;
public RequestSignature signature = null;
public String getPhoneFullNumber() { return phoneFullNumber; }
public SystemInfoRequest setPhoneFullNumber(String value) { this.phoneFullNumber = value; return this; }
public String getDeviceId() { return deviceId; }
public SystemInfoRequest setDeviceId(String value) { this.deviceId = value; return this; }
public Long getRequestUnixUTCTimeStamp() { return requestUnixUTCTimeStamp; }
public SystemInfoRequest setRequestUnixUTCTimeStamp(Long value) { this.requestUnixUTCTimeStamp = value; return this; }
public RequestSignature getSignature() { return signature; }
public SystemInfoRequest setSignature(RequestSignature value) { this.signature = value; return this; }
}
public static class RequestSignature
{
public String systemId = null;
public String systemSecret = null;
public String signature = null;
public String getSystemId() { return systemId; }
public RequestSignature setSystemId(String value) { this.systemId = value; return this; }
public String getSystemSecret() { return systemSecret; }
public RequestSignature setSystemSecret(String value) { this.systemSecret = value; return this; }
public String getSignature() { return signature; }
public RequestSignature setSignature(String value) { this.signature = value; return this; }
}
public static class SystemInfo
{
public String redirectTo = null;
public Boolean acceptingPayments = null;
public Boolean canSaveCard = null;
public String errorResponse = null;
public Integer minVersion = null;
public String getRedirectTo() { return redirectTo; }
public SystemInfo setRedirectTo(String value) { this.redirectTo = value; return this; }
public Boolean isAcceptingPayments() { return acceptingPayments; }
public SystemInfo setAcceptingPayments(Boolean value) { this.acceptingPayments = value; return this; }
public Boolean isCanSaveCard() { return canSaveCard; }
public SystemInfo setCanSaveCard(Boolean value) { this.canSaveCard = value; return this; }
public String getErrorResponse() { return errorResponse; }
public SystemInfo setErrorResponse(String value) { this.errorResponse = value; return this; }
public Integer getMinVersion() { return minVersion; }
public SystemInfo setMinVersion(Integer value) { this.minVersion = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /system/info HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SystemInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<DeviceId>String</DeviceId>
<PhoneFullNumber>String</PhoneFullNumber>
<RequestUnixUTCTimeStamp>0</RequestUnixUTCTimeStamp>
<Signature>
<Signature>String</Signature>
<SystemId>String</SystemId>
<SystemSecret>String</SystemSecret>
</Signature>
</SystemInfoRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <SystemInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <AcceptingPayments>false</AcceptingPayments> <CanSaveCard>false</CanSaveCard> <ErrorResponse>String</ErrorResponse> <MinVersion>0</MinVersion> <RedirectTo>String</RedirectTo> </SystemInfo>