Agent offices¶
The agent offices API allows you to retrieve a list of your offices that partner with EC, the code for each office will be required when calling other API services. You need to authenticate using an API Key in order to call this service; see the Authentication section for further details
- URL
/v1/agent/offices
- HTTP Method
GET
- Client Library Message Name
Agent.GetOfficesRequest
Sample request¶
Error
Failed to run contract transformer command: bin\Api.ContractTransformer.exe
{ }
Sample response¶
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Cache-Control: no-cache
Content-Length: 254
{
"Results": [
{
"Code": "324",
"Name": "Sample Agent - Austria"
},
{
"Code": "1832",
"Name": "Sample Agent - Belgium"
},
{
"Code": "433",
"Name": "Sample Agent - Spain"
}
]
}
HTTP/1.1 200 OK
Content-Type: application/xml; charset=utf-8
Cache-Control: no-cache
Content-Length: 701
<GetOfficesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EcEnglish.Api.ServiceContract.Agent">
<Results>
<AgentOffice>
<AdmissionContactOwner
i:nil="true" />
<Code>324</Code>
<HasPortalAccess>false</HasPortalAccess>
<Name>Sample Agent - Austria</Name>
</AgentOffice>
<AgentOffice>
<AdmissionContactOwner
i:nil="true" />
<Code>1832</Code>
<HasPortalAccess>false</HasPortalAccess>
<Name>Sample Agent - Belgium</Name>
</AgentOffice>
<AgentOffice>
<AdmissionContactOwner
i:nil="true" />
<Code>433</Code>
<HasPortalAccess>false</HasPortalAccess>
<Name>Sample Agent - Spain</Name>
</AgentOffice>
</Results>
</GetOfficesResponse>