| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/CommissionReport/{StartDate}/{EndDate} |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| StartDate | path | DateTime | No | |
| EndDate | path | DateTime | No | |
| ShowProcessed | query | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| ReportData | form | List<CommissionRecord> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| DateCreated | form | DateTime | No | |
| AgentNumber | form | string | No | |
| AgentName | form | string | No | |
| PolicyNumber | form | string | No | |
| InsuredAnnuitant | form | string | No | |
| ProcessDate | form | DateTime | No | |
| Premium | form | decimal | No | |
| GrossCommission | form | decimal | No | |
| CommRate | form | double | No | |
| Part | form | double | No | |
| PaymentDate | form | DateTime | No | |
| PolicyType | form | string | No | |
| Company | form | string | No | |
| AgentId | form | int | No | |
| DateProcessed | form | DateTime | No | |
| CommissionBatchId | form | int | No |
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/CommissionReport/{StartDate}/{EndDate} 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
}
},
ReportData:
[
{
Id: 0,
DateCreated: 0001-01-01,
AgentNumber: String,
AgentName: String,
PolicyNumber: String,
InsuredAnnuitant: String,
ProcessDate: 0001-01-01,
Premium: 0,
GrossCommission: 0,
CommRate: 0,
Part: 0,
PaymentDate: 0001-01-01,
PolicyType: String,
Company: String,
AgentId: 0,
DateProcessed: 0001-01-01,
CommissionBatchId: 0
}
]
}