GET v1/Rating/{locationId}/AllRatingStates
Get Rating States including which states are being used and which is default
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| locationId |
Id of the location |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Action result with rating states
ActionResultDTOOfRatingStatesDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Result | RatingStatesDTO |
None. |
|
| CreatedBy | string |
None. |
|
| EntityID | integer |
None. |
|
| RowSource | string |
None. |
|
| PolicyID | integer |
None. |
|
| IsSuccess | boolean |
None. |
|
| ErrorCode | string |
None. |
|
| ErrorMessage | string |
None. |
|
| InfoMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Result": {
"Items": [
{
"ID": 1,
"Name": "sample string 2",
"StateCode": "sample string 3",
"IsSelected": true,
"HasBrokerFee": true,
"BrokerFee": 1.0,
"LocationId": 6
},
{
"ID": 1,
"Name": "sample string 2",
"StateCode": "sample string 3",
"IsSelected": true,
"HasBrokerFee": true,
"BrokerFee": 1.0,
"LocationId": 6
}
],
"DefaultState": 1
},
"CreatedBy": "sample string 1",
"EntityID": 2,
"RowSource": "sample string 3",
"PolicyID": 4,
"IsSuccess": true,
"ErrorCode": "sample string 6",
"ErrorMessage": "sample string 7",
"InfoMessage": "sample string 8"
}
application/xml, text/xml
Sample:
<ActionResultOfRatingStatesDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects">
<ErrorCode>sample string 6</ErrorCode>
<ErrorMessage>sample string 7</ErrorMessage>
<InfoMessage>sample string 8</InfoMessage>
<IsSuccess>true</IsSuccess>
<CreatedBy>sample string 1</CreatedBy>
<EntityID>2</EntityID>
<PolicyID>4</PolicyID>
<Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Rating">
<d2p1:DefaultState>1</d2p1:DefaultState>
<d2p1:Items xmlns:d3p1="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Policies">
<d3p1:RatingStateDTO>
<d3p1:BrokerFee>1</d3p1:BrokerFee>
<d3p1:HasBrokerFee>true</d3p1:HasBrokerFee>
<d3p1:ID>1</d3p1:ID>
<d3p1:IsSelected>true</d3p1:IsSelected>
<d3p1:LocationId>6</d3p1:LocationId>
<d3p1:Name>sample string 2</d3p1:Name>
<d3p1:StateCode>sample string 3</d3p1:StateCode>
</d3p1:RatingStateDTO>
<d3p1:RatingStateDTO>
<d3p1:BrokerFee>1</d3p1:BrokerFee>
<d3p1:HasBrokerFee>true</d3p1:HasBrokerFee>
<d3p1:ID>1</d3p1:ID>
<d3p1:IsSelected>true</d3p1:IsSelected>
<d3p1:LocationId>6</d3p1:LocationId>
<d3p1:Name>sample string 2</d3p1:Name>
<d3p1:StateCode>sample string 3</d3p1:StateCode>
</d3p1:RatingStateDTO>
</d2p1:Items>
</Result>
<RowSource>sample string 3</RowSource>
</ActionResultOfRatingStatesDTO>