AIM Web Services

<back to all web services

C2BGetSchoolInfoRequest

C2BGetSchoolInfo
Requires active-e Contracts Service.

The following routes are available for this service:
POST, GET/api/C2BGetSchoolInfo
C2BGetSchoolInfoRequest Parameters:
NameParameterData TypeRequiredDescription
PlanCodequerystringNoIf sent, only schools associated with the sent plan code will be returned.
DistrictIdqueryintegerNoIf sent, only schools associated with the sent district will be returned.
RinPkqueryintegerNoID of the Instrument record. Optional.
RequestTypequerystringNoOptional Request Type. Valid values are Contract and Shipping.
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
ApiKeyheaderstringYesThis is your AIM API Key provided by Tri-Tech
OAuthTokenheaderstringNo
C2BGetSchoolInfoResponse Parameters:
NameParameterData TypeRequiredDescription
SchoolsformList<C2BSchoolGeneric>No
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
StatusbodyBaseResponseResultNo
BaseResponseResult Parameters:
NameParameterData TypeRequiredDescription
StatusCodebodystringNo
LoginbodystringNo
ErrorCodebodystringNo
ErrorDisplayTextbodystringNo
ErrorMessagebodystringNo
DomainNamebodystringNo
IpAddressbodystringNo
C2BSchoolGeneric Parameters:
NameParameterData TypeRequiredDescription
SchoolNameformstringNo
DistrictNameformstringNo
TeacherCountformintNo
TopicformstringNo
IdformlongNo
DeliveryInfoformC2BDeliveryInfoNo
AIMSchoolIdformlong?No
C2BDeliveryInfo Parameters:
NameParameterData TypeRequiredDescription
FirstDeliveryformDateTimeNo
DeliveryTimeformDateTimeNo
DeliveryThresholdformintNo
SundayDeliveryformboolNo
MondayDeliveryformboolNo
TuesdayDeliveryformboolNo
WednesdayDeliveryformboolNo
ThursdayDeliveryformboolNo
FridayDeliveryformboolNo
SaturdayDeliveryformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/C2BGetSchoolInfo HTTP/1.1 
Host: active-ewebservice.biz 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"PlanCode":"String","DistrictId":0,"RinPk":0,"RequestType":"String","ApiKey":"String","OAuthToken":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Schools":[{}],"Status":{"StatusCode":"String","Login":"String","ErrorCode":"String","ErrorDisplayText":"String","ErrorMessage":"String","DomainName":"String","IpAddress":"String"}}