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 .csv suffix or ?format=csv
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: text/csv
Content-Type: text/csv
Content-Length: length
{"phoneFullNumber":"String","deviceId":"String","requestUnixUTCTimeStamp":0,"signature":{"systemId":"String","systemSecret":"String","signature":"String"}}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"redirectTo":"String","acceptingPayments":false,"canSaveCard":false,"errorResponse":"String","minVersion":0}