AIM Web Services

<back to all web services

C2BGetTeacherInfoRequest

C2BGetTeacherInfo
Requires active-e Contracts Service.

The following routes are available for this service:
POST, GET/api/C2BGetTeacherInfo
C2BGetTeacherInfoRequest Parameters:
NameParameterData TypeRequiredDescription
PlanCodequerystringNoIf sent, only teachers associated with the sent plan code will be returned.
SchoolIdqueryintegerNoIf sent, only teachers associated with the sent school will be returned.
TeacherIdqueryintegerNoIf sent, only info for the sent teacher 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
C2BGetTeacherInfoResponse Parameters:
NameParameterData TypeRequiredDescription
TeachersformList<C2BTeacherGeneric>No
PlanCodeformstringNo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
StatusbodyBaseResponseResultNo
BaseResponseResult Parameters:
NameParameterData TypeRequiredDescription
StatusCodebodystringNo
LoginbodystringNo
ErrorCodebodystringNo
ErrorDisplayTextbodystringNo
ErrorMessagebodystringNo
DomainNamebodystringNo
IpAddressbodystringNo
C2BTeacherGeneric Parameters:
NameParameterData TypeRequiredDescription
TeacherNameformstringNo
SchoolNameformstringNo
DistrictNameformstringNo
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/C2BGetTeacherInfo HTTP/1.1 
Host: active-ewebservice.biz 
Accept: application/json
Content-Type: application/json
Content-Length: length

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

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