AIM Web Services

<back to all web services

ShortTermRentalInventoryRequest

ShortTermRentalInventory
Requires active-e Short Term Rental Service

The following routes are available for this service:
GET/api/ShortTermRentalInventory
"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 ShortTermRentalInventoryRate {
    /** @param {{HeaderDesc?:string,HeaderNotes?:string,Desc?:string,IntervalType?:string,Group?:string,Notes?:string,Amt?:number,TimeInterval?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    HeaderDesc;
    /** @type {string} */
    HeaderNotes;
    /** @type {string} */
    Desc;
    /** @type {string} */
    IntervalType;
    /** @type {string} */
    Group;
    /** @type {string} */
    Notes;
    /** @type {number} */
    Amt;
    /** @type {number} */
    TimeInterval;
}
export class ShortTermRentalInventoryObj {
    /** @param {{Rates?:ShortTermRentalInventoryRate[],AvailableSerialPks?:number[],SaqPk?:number,SkuPk?:number,PkhPk?:number,Sku?:string,Package?:string,InvType?:string,AvailableQty?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {ShortTermRentalInventoryRate[]} */
    Rates;
    /** @type {number[]} */
    AvailableSerialPks;
    /** @type {?number} */
    SaqPk;
    /** @type {?number} */
    SkuPk;
    /** @type {?number} */
    PkhPk;
    /** @type {string} */
    Sku;
    /** @type {string} */
    Package;
    /** @type {string} */
    InvType;
    /** @type {number} */
    AvailableQty;
}
export class ShortTermRentalInventoryResponse extends BaseResponse {
    /** @param {{Results?:ShortTermRentalInventoryObj[],Status?:BaseResponseResult}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /** @type {ShortTermRentalInventoryObj[]} */
    Results;
}
export class ShortTermRentalInventoryRequest extends BaseSecureRequest {
    /** @param {{Item?:string,LocationCode?:string,ItemPk?:number,PkType?:string,Category?:number,SubCategory?:number,Token?:string,DeviceId?:string,AppId?:string,ApiKey?:string,OAuthToken?:string}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /**
     * @type {string}
     * @description Item to lookup. Pass in either this *OR* ItemPk + PkType *OR* Category + SubCategory */
    Item;
    /** @type {string} */
    LocationCode;
    /**
     * @type {?number}
     * @description Key of the item to lookup. Pass in either this plus PkType *OR* Item *OR* Category + SubCategory */
    ItemPk;
    /**
     * @type {string}
     * @description Type of the key passed in. S for SasPk, Q for SaqPk, P for PkhPk. Pass in either this plus ItemPk *OR* Item *OR* Category + SubCategory */
    PkType;
    /**
     * @type {?number}
     * @description Pass in either SubCategory + this *OR* Item *OR* ItemPk + PkType */
    Category;
    /**
     * @type {?number}
     * @description Pass in either Category + this *OR* Item *OR* ItemPk + PkType */
    SubCategory;
}

JavaScript ShortTermRentalInventoryRequest 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/ShortTermRentalInventory HTTP/1.1 
Host: active-ewebservice.biz 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ShortTermRentalInventoryResponse 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>
  <Results>
    <ShortTermRentalInventoryObj>
      <AvailableQty>0</AvailableQty>
      <AvailableSerialPks xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:long>0</d4p1:long>
      </AvailableSerialPks>
      <InvType>String</InvType>
      <Package>String</Package>
      <PkhPk>0</PkhPk>
      <Rates>
        <ShortTermRentalInventoryRate>
          <Amt>0</Amt>
          <Desc>String</Desc>
          <Group>String</Group>
          <HeaderDesc>String</HeaderDesc>
          <HeaderNotes>String</HeaderNotes>
          <IntervalType>String</IntervalType>
          <Notes>String</Notes>
          <TimeInterval>0</TimeInterval>
        </ShortTermRentalInventoryRate>
      </Rates>
      <SaqPk>0</SaqPk>
      <Sku>String</Sku>
      <SkuPk>0</SkuPk>
    </ShortTermRentalInventoryObj>
  </Results>
</ShortTermRentalInventoryResponse>