AIM Web Services

<back to all web services

C2BGetUnfinishedContractsRequest

C2BGetUnfinishedContracts
Requires active-e Contracts Service.

The following routes are available for this service:
GET/api/C2BGetUnfinishedContracts
C2BGetUnfinishedContractsRequest Parameters:
NameParameterData TypeRequiredDescription
TypequerystringNo
StartOffsetqueryint?No
RecordCountqueryint?No
SearchStrquerystringNo
IncludeContractsEnteredByOtherUsersqueryboolNo
DistrictIdquerylong?No
SchoolIdquerylong?No
TeacherIdquerylong?No
DeliveryDescquerystringNo
StatusquerystringNo
BaseSecureRequest Parameters:
NameParameterData TypeRequiredDescription
TokenHeaderstringNo
DeviceIdHeaderstringNo
AppIdHeaderstringYes
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
ApiKeyheaderstringYesThis is your AIM API Key provided by Tri-Tech
OAuthTokenheaderstringNo
C2BGetUnfinishedContractsResponse Parameters:
NameParameterData TypeRequiredDescription
UnfinishedContractsformList<UnfinishedContract>No
TopicformstringNo
BaseUrlformstringNo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
StatusbodyBaseResponseResultNo
BaseResponseResult Parameters:
NameParameterData TypeRequiredDescription
StatusCodebodystringNo
LoginbodystringNo
ErrorCodebodystringNo
ErrorDisplayTextbodystringNo
ErrorMessagebodystringNo
DomainNamebodystringNo
IpAddressbodystringNo
UnfinishedContract Parameters:
NameParameterData TypeRequiredDescription
CustomerNameformstringNo
CustomerAcctformintNo
StudentNameformstringNo
RefformstringNo
DateTimeformDateTimeNo
LocationformLocationInfoNo
DistrictformstringNo
SchoolformstringNo
TeacherformstringNo
InstrumentformstringNo
StatusformstringNo
NotesformstringNo
LockedByformstringNo
InstrumentGradeformstringNo
SerialformstringNo
SalespersonformstringNo
WebNotesformstringNo
EmailformstringNo
PhoneformstringNo
DeliveryDateformDateTime?No
FirstDueformDateTime?No
AccessoriesformList<C2BAccessory>No
DownPayformdecimalNo
MonthlyPayformdecimalNo
DownMaintformdecimalNo
MonthlyMaintformdecimalNo
DownLeaseformdecimalNo
MonthlyLeaseformdecimalNo
DownTotalformdecimalNo
AddressformstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
ZipformstringNo
CountryformstringNo
InvoiceCreatedformboolNo
ContractCreatedformboolNo
LocationInfo Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
DescformstringNo
ShortDescformstringNo
RegionformstringNo
LatitudeformdecimalNo
LongitudeformdecimalNo
InStorePickupformstringNo
ActiveformboolNo
C2BAccessory Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
DescriptionformstringNo
PriceformdecimalNo
TypeformstringNo
SkuformstringNo
Categoryformint?No
DeliveredformboolNo

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.

GET /api/C2BGetUnfinishedContracts HTTP/1.1 
Host: active-ewebservice.biz 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"UnfinishedContracts":[{"CustomerName":"String","CustomerAcct":0,"StudentName":"String","Ref":"String","Location":{"Id":0,"Desc":"String","ShortDesc":"String","Region":"String","Latitude":0,"Longitude":0,"InStorePickup":"String","Active":false},"District":"String","School":"String","Teacher":"String","Instrument":"String","Status":"String","Notes":"String","LockedBy":"String","InstrumentGrade":"String","Serial":"String","Salesperson":"String","WebNotes":"String","Email":"String","Phone":"String","DeliveryDate":"0001-01-01T00:00:00.0000000","FirstDue":"0001-01-01T00:00:00.0000000","Accessories":[{"Id":0,"Description":"String","Price":0,"Type":"String","Sku":"String","Category":0,"Delivered":false}],"DownPay":0,"MonthlyPay":0,"DownMaint":0,"MonthlyMaint":0,"DownLease":0,"MonthlyLease":0,"DownTotal":0,"Address":"String","Address2":"String","City":"String","State":"String","Zip":"String","Country":"String","InvoiceCreated":false,"ContractCreated":false}],"Topic":"String","BaseUrl":"String","Status":{"StatusCode":"String","Login":"String","ErrorCode":"String","ErrorDisplayText":"String","ErrorMessage":"String","DomainName":"String","IpAddress":"String"}}