| GET | /api/GetSchoolList |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DistrictId | query | integer | No | District ID. Skip this parameter to return all schools. -1 will return all schools that don't have a district assigned. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Token | Header | string | No | The Login Token return by the Security API. Required for secured calls. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ApiKey | Header | string | Yes | This is your AIM API Key provided by Tri-Tech |
| OAuthToken | Header | string | Yes | The OAuthToken token return by AeServices30 |
| DeviceId | Header | string | No | The Device ID of the Mobile Device. Not used for non-mobile devices. |
| AppId | Header | string | Yes | An identifier for your integration |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Schools | form | List<SchoolGeneric> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Status | body | BaseResponseResult | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| StatusCode | body | string | No | |
| Login | body | string | No | |
| ErrorCode | body | string | No | |
| ErrorDisplayText | body | string | No | |
| ErrorMessage | body | string | No | |
| DomainName | body | string | No | |
| IpAddress | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | long | No | |
| SchoolName | form | string | No | |
| District | form | string | No | |
| Address | form | string | No | |
| City | form | string | No | |
| State | form | string | No | |
| Zip | form | string | No | |
| Phone | form | string | No | |
| TaxAuth | form | string | No | |
| DeliveryInfo | form | C2BDeliveryInfo | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| FirstDelivery | form | DateTime | No | |
| DeliveryTime | form | DateTime | No | |
| DeliveryThreshold | form | int | No | |
| SundayDelivery | form | bool | No | |
| MondayDelivery | form | bool | No | |
| TuesdayDelivery | form | bool | No | |
| WednesdayDelivery | form | bool | No | |
| ThursdayDelivery | form | bool | No | |
| FridayDelivery | form | bool | No | |
| SaturdayDelivery | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/GetSchoolList HTTP/1.1 Host: active-ewebservice.biz Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetSchoolListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AIM.WebService">
<Status>
<DomainName>String</DomainName>
<ErrorCode>String</ErrorCode>
<ErrorDisplayText>String</ErrorDisplayText>
<ErrorMessage>String</ErrorMessage>
<IpAddress>String</IpAddress>
<Login>String</Login>
<StatusCode>String</StatusCode>
</Status>
<Schools xmlns:d2p1="http://schemas.datacontract.org/2004/07/AIM">
<d2p1:SchoolGeneric>
<d2p1:Address>String</d2p1:Address>
<d2p1:City>String</d2p1:City>
<d2p1:DeliveryInfo>
<d2p1:DeliveryThreshold>0</d2p1:DeliveryThreshold>
<d2p1:DeliveryTime>0001-01-01T00:00:00</d2p1:DeliveryTime>
<d2p1:FirstDelivery>0001-01-01T00:00:00</d2p1:FirstDelivery>
<d2p1:FridayDelivery>false</d2p1:FridayDelivery>
<d2p1:MondayDelivery>false</d2p1:MondayDelivery>
<d2p1:SaturdayDelivery>false</d2p1:SaturdayDelivery>
<d2p1:SundayDelivery>false</d2p1:SundayDelivery>
<d2p1:ThursdayDelivery>false</d2p1:ThursdayDelivery>
<d2p1:TuesdayDelivery>false</d2p1:TuesdayDelivery>
<d2p1:WednesdayDelivery>false</d2p1:WednesdayDelivery>
</d2p1:DeliveryInfo>
<d2p1:District>String</d2p1:District>
<d2p1:Id>0</d2p1:Id>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:SchoolName>String</d2p1:SchoolName>
<d2p1:State>String</d2p1:State>
<d2p1:TaxAuth>String</d2p1:TaxAuth>
<d2p1:Zip>String</d2p1:Zip>
</d2p1:SchoolGeneric>
</Schools>
</GetSchoolListResponse>