AIM Web Services

<back to all web services

ScheduledExchangesGetRequest

ScheduledExchanges
Requires active-e Contracts Service.

The following routes are available for this service:
GET/api/ScheduledExchanges
"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 ScheduledExchangesGetInfo {
    /** @param {{ExchangeID?:number,Acct?:number,Sub?:number,Name?:string,Address?:string,Address2?:string,City?:string,Student?:string,School?:string,District?:string,Item?:string,Employee?:string,ReturnedDate?:string,StockNumber?:string,Serial?:string,ReturnOption?:string,ScheduledReturnedRef?:string,Status?:string,History?:string,ExchangeRef?:number,AutoPayHoldDate?:string,ExchangedItem?:string,PostingDate?:string,ScheduledDate?:string,NewSku?:string,Notes?:string,Source?:string,Option?:string,Processed?:boolean,MobileExchangedStatus?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    ExchangeID;
    /** @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} */
    StockNumber;
    /** @type {string} */
    Serial;
    /** @type {string} */
    ReturnOption;
    /** @type {string} */
    ScheduledReturnedRef;
    /** @type {string} */
    Status;
    /** @type {string} */
    History;
    /** @type {?number} */
    ExchangeRef;
    /** @type {?string} */
    AutoPayHoldDate;
    /** @type {string} */
    ExchangedItem;
    /** @type {string} */
    PostingDate;
    /** @type {string} */
    ScheduledDate;
    /** @type {string} */
    NewSku;
    /** @type {string} */
    Notes;
    /** @type {string} */
    Source;
    /** @type {string} */
    Option;
    /** @type {boolean} */
    Processed;
    /** @type {boolean} */
    MobileExchangedStatus;
}
export class ScheduledExchangesGetResponse extends BaseResponse {
    /** @param {{ScheduledExchanges?:ScheduledExchangesGetInfo[],Status?:BaseResponseResult}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /** @type {ScheduledExchangesGetInfo[]} */
    ScheduledExchanges;
}
export class ScheduledExchangesGetRequest extends BaseSecureRequest {
    /** @param {{ScheduledDateFrom?:string,ScheduledDateTo?:string,DistrictId?:number,SchoolId?:number,LocationId?:number,StatusId?:number,OptionId?:number,IncludeProcessed?:boolean,LanId?:string,Token?:string,DeviceId?:string,AppId?:string,ApiKey?:string,OAuthToken?:string}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /** @type {?string} */
    ScheduledDateFrom;
    /** @type {?string} */
    ScheduledDateTo;
    /** @type {?number} */
    DistrictId;
    /** @type {?number} */
    SchoolId;
    /** @type {?number} */
    LocationId;
    /** @type {?number} */
    StatusId;
    /** @type {?number} */
    OptionId;
    /** @type {?boolean} */
    IncludeProcessed;
    /** @type {string} */
    LanId;
}

JavaScript ScheduledExchangesGetRequest DTOs

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

HTTP + OTHER

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

GET /api/ScheduledExchanges HTTP/1.1 
Host: active-ewebservice.biz 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ScheduledExchanges":[{"ExchangeID":0,"Acct":0,"Sub":0,"Name":"String","Address":"String","Address2":"String","City":"String","Student":"String","School":"String","District":"String","Item":"String","Employee":"String","ReturnedDate":"0001-01-01T00:00:00.0000000","StockNumber":"String","Serial":"String","ReturnOption":"String","ScheduledReturnedRef":"String","Status":"String","History":"String","ExchangeRef":0,"AutoPayHoldDate":"0001-01-01T00:00:00.0000000","ExchangedItem":"String","NewSku":"String","Notes":"String","Source":"String","Option":"String","Processed":false,"MobileExchangedStatus":false}],"Status":{"StatusCode":"String","Login":"String","ErrorCode":"String","ErrorDisplayText":"String","ErrorMessage":"String","DomainName":"String","IpAddress":"String"}}