AIM Web Services

<back to all web services

ContractScheduledReturnsRequest

ContractScheduledReturns
Requires active-e Contracts Service.

The following routes are available for this service:
GET/api/ContractScheduledReturns
"use strict";
export class BaseRequest {
    /** @param {{ApiKey?:string,OAuthToken?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description This is your AIM API Key provided by Tri-Tech */
    ApiKey;
    /** @type {string} */
    OAuthToken;
}
export class BaseSecureRequest extends BaseRequest {
    /** @param {{Token?:string,DeviceId?:string,AppId?:string,ApiKey?:string,OAuthToken?:string}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /** @type {string} */
    Token;
    /** @type {string} */
    DeviceId;
    /** @type {string} */
    AppId;
}
export class BaseResponseResult {
    /** @param {{StatusCode?:string,Login?:string,ErrorCode?:string,ErrorDisplayText?:string,ErrorMessage?:string,DomainName?:string,IpAddress?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    StatusCode;
    /** @type {string} */
    Login;
    /** @type {string} */
    ErrorCode;
    /** @type {string} */
    ErrorDisplayText;
    /** @type {string} */
    ErrorMessage;
    /** @type {string} */
    DomainName;
    /** @type {string} */
    IpAddress;
}
export class BaseResponse {
    /** @param {{Status?:BaseResponseResult}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {BaseResponseResult} */
    Status;
}
export class ContractScheduledReturnInfo {
    /** @param {{Acct?:number,Sub?:number,Name?:string,Address?:string,Address2?:string,City?:string,Student?:string,School?:string,District?:string,Item?:string,Employee?:string,ReturnedDate?:string,ScheduledReturnDate?:string,StockNumber?:string,Serial?:string,ReturnOption?:string,ScheduledReturnedRef?:string,Status?:string,AutoPayHoldDate?:string,MobileReturnedStatus?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    Acct;
    /** @type {number} */
    Sub;
    /** @type {string} */
    Name;
    /** @type {string} */
    Address;
    /** @type {string} */
    Address2;
    /** @type {string} */
    City;
    /** @type {string} */
    Student;
    /** @type {string} */
    School;
    /** @type {string} */
    District;
    /** @type {string} */
    Item;
    /** @type {string} */
    Employee;
    /** @type {?string} */
    ReturnedDate;
    /** @type {string} */
    ScheduledReturnDate;
    /** @type {string} */
    StockNumber;
    /** @type {string} */
    Serial;
    /** @type {string} */
    ReturnOption;
    /** @type {string} */
    ScheduledReturnedRef;
    /** @type {string} */
    Status;
    /** @type {?string} */
    AutoPayHoldDate;
    /** @type {boolean} */
    MobileReturnedStatus;
}
export class ContractScheduledReturnsResponse extends BaseResponse {
    /** @param {{Contracts?:ContractScheduledReturnInfo[],Status?:BaseResponseResult}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /** @type {ContractScheduledReturnInfo[]} */
    Contracts;
}
export class ContractScheduledReturnsRequest extends BaseSecureRequest {
    /** @param {{DateFrom?:string,DateTo?:string,DistrictId?:number,SchoolId?:number,LocationId?:number,StatusId?:number,OptionId?:number,IncludeReturned?:boolean,LanId?:string,Token?:string,DeviceId?:string,AppId?:string,ApiKey?:string,OAuthToken?:string}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /** @type {?string} */
    DateFrom;
    /** @type {?string} */
    DateTo;
    /** @type {?number} */
    DistrictId;
    /** @type {?number} */
    SchoolId;
    /** @type {?number} */
    LocationId;
    /** @type {?number} */
    StatusId;
    /** @type {?number} */
    OptionId;
    /** @type {?boolean} */
    IncludeReturned;
    /** @type {string} */
    LanId;
}

JavaScript ContractScheduledReturnsRequest DTOs

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

HTTP + XML

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

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

<ContractScheduledReturnsResponse 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>
  <Contracts>
    <ContractScheduledReturnInfo>
      <Acct>0</Acct>
      <Address>String</Address>
      <Address2>String</Address2>
      <AutoPayHoldDate>0001-01-01T00:00:00</AutoPayHoldDate>
      <City>String</City>
      <District>String</District>
      <Employee>String</Employee>
      <Item>String</Item>
      <MobileReturnedStatus>false</MobileReturnedStatus>
      <Name>String</Name>
      <ReturnOption>String</ReturnOption>
      <ReturnedDate>0001-01-01T00:00:00</ReturnedDate>
      <ScheduledReturnDate>0001-01-01T00:00:00</ScheduledReturnDate>
      <ScheduledReturnedRef>String</ScheduledReturnedRef>
      <School>String</School>
      <Serial>String</Serial>
      <Status>String</Status>
      <StockNumber>String</StockNumber>
      <Student>String</Student>
      <Sub>0</Sub>
    </ContractScheduledReturnInfo>
  </Contracts>
</ContractScheduledReturnsResponse>