| Requires the role: | Admin | Requires the permission: | ReadData |
| GET | /stig/balance |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class StigBalanceRequest
{
public String fullPhoneNumber = null;
public String getFullPhoneNumber() { return fullPhoneNumber; }
public StigBalanceRequest setFullPhoneNumber(String value) { this.fullPhoneNumber = value; return this; }
}
public static class StigBalanceResult
{
public String fullPhoneNumber = null;
public Boolean known = null;
public Boolean excluded = null;
public Integer balance = null;
public Integer heldStig = null;
public Integer available = null;
public Integer lifetimeEarned = null;
public Date updatedUtc = null;
public Integer statusCode = null;
public String message = null;
public String getFullPhoneNumber() { return fullPhoneNumber; }
public StigBalanceResult setFullPhoneNumber(String value) { this.fullPhoneNumber = value; return this; }
public Boolean isKnown() { return known; }
public StigBalanceResult setKnown(Boolean value) { this.known = value; return this; }
public Boolean isExcluded() { return excluded; }
public StigBalanceResult setExcluded(Boolean value) { this.excluded = value; return this; }
public Integer getBalance() { return balance; }
public StigBalanceResult setBalance(Integer value) { this.balance = value; return this; }
public Integer getHeldStig() { return heldStig; }
public StigBalanceResult setHeldStig(Integer value) { this.heldStig = value; return this; }
public Integer getAvailable() { return available; }
public StigBalanceResult setAvailable(Integer value) { this.available = value; return this; }
public Integer getLifetimeEarned() { return lifetimeEarned; }
public StigBalanceResult setLifetimeEarned(Integer value) { this.lifetimeEarned = value; return this; }
public Date getUpdatedUtc() { return updatedUtc; }
public StigBalanceResult setUpdatedUtc(Date value) { this.updatedUtc = value; return this; }
public Integer getStatusCode() { return statusCode; }
public StigBalanceResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public StigBalanceResult setMessage(String value) { this.message = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /stig/balance HTTP/1.1 Host: stubbur-app.azurewebsites.net Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"fullPhoneNumber":"String","known":false,"excluded":false,"balance":0,"heldStig":0,"available":0,"lifetimeEarned":0,"updatedUtc":"0001-01-01T00:00:00.0000000","statusCode":0,"message":"String"}