GET Territory?ZipCode={ZipCode}&State={State}&APIIdentifier={APIIdentifier}&User={User}
The Territory service returns a valid ISO General Liability Territory code, based on State and Zip Code
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| ZipCode | Five digit US Zip Code. Example: 30326 (Required) |
Define this parameter in the request URI. |
| State | Two character US State code. Example: GA (Optional) |
Define this parameter in the request URI. |
| APIIdentifier | An identifier assigned to MGAs by RSUI. Example: 5a6c7790-83bf-4b4c-88e1-7067413d3390 (Required) |
Define this parameter in the request URI. |
| User | User Name that matches with the APIIdentifier. Example: John Smith (Required) |
Define this parameter in the request URI. |
Response Information
The service may return more than one Territory code if multiple codes are found. (Error messages will be in the ApiMessages field)
Response body formats
application/json, text/json
Sample:
{
"territories": [
{
"territoryState": "GA",
"territoryCode": "502"
}
],
"apiMessages": [
"Number of territories returned: 1"
]
}
text/html
Sample:
{"territories":[{"territoryState":"GA","territoryCode":"502"}],"apiMessages":["Number of territories returned: 1"]}
application/xml, text/xml
Sample:
<TerritoryResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<APIMessages>
<string>Number of territories returned: 1</string>
</APIMessages>
<Territories>
<Territory>
<TerritoryState>GA</TerritoryState>
<TerritoryCode>502</TerritoryCode>
</Territory>
</Territories>
</TerritoryResponse>
text/javascript, application/javascript, application/json-p
Sample:
({"territories":[{"territoryState":"GA","territoryCode":"502"}],"apiMessages":["Number of territories returned: 1"]});