| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/PayrollBatch |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class PayrollBatchRequest
{
}
public static class PayrollBatchResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<CommissionBatch> Payroll = new ArrayList<CommissionBatch>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public PayrollBatchResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<CommissionBatch> getPayroll() { return Payroll; }
public PayrollBatchResponse setPayroll(ArrayList<CommissionBatch> value) { this.Payroll = value; return this; }
}
public static class CommissionBatch
{
public Integer CommissionBatchId = null;
public Date DateCreated = null;
public String CreatedBy = null;
public String CommissionTitle = null;
public Date CommissionStartDate = null;
public Date CommissionEndDate = null;
public Integer getCommissionBatchId() { return CommissionBatchId; }
public CommissionBatch setCommissionBatchId(Integer value) { this.CommissionBatchId = value; return this; }
public Date getDateCreated() { return DateCreated; }
public CommissionBatch setDateCreated(Date value) { this.DateCreated = value; return this; }
public String getCreatedBy() { return CreatedBy; }
public CommissionBatch setCreatedBy(String value) { this.CreatedBy = value; return this; }
public String getCommissionTitle() { return CommissionTitle; }
public CommissionBatch setCommissionTitle(String value) { this.CommissionTitle = value; return this; }
public Date getCommissionStartDate() { return CommissionStartDate; }
public CommissionBatch setCommissionStartDate(Date value) { this.CommissionStartDate = value; return this; }
public Date getCommissionEndDate() { return CommissionEndDate; }
public CommissionBatch setCommissionEndDate(Date value) { this.CommissionEndDate = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/PayrollBatch HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Payroll:
[
{
CommissionBatchId: 0,
DateCreated: 0001-01-01,
CreatedBy: String,
CommissionTitle: String,
CommissionStartDate: 0001-01-01,
CommissionEndDate: 0001-01-01
}
]
}