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
ShortTermRentalInventoryRequest Parameters:
NameParameterData TypeRequiredDescription
ItemquerystringNoItem to lookup. Pass in either this *OR* ItemPk + PkType *OR* Category + SubCategory
LocationCodequerystringNo
ItemPkquerylong?NoKey of the item to lookup. Pass in either this plus PkType *OR* Item *OR* Category + SubCategory
PkTypequerystringNoType 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
Categoryqueryint?NoPass in either SubCategory + this *OR* Item *OR* ItemPk + PkType
SubCategoryqueryint?NoPass in either Category + this *OR* Item *OR* ItemPk + PkType
BaseSecureRequest Parameters:
NameParameterData TypeRequiredDescription
TokenHeaderstringNo
DeviceIdHeaderstringNo
AppIdHeaderstringYes
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
ApiKeyheaderstringYesThis is your AIM API Key provided by Tri-Tech
OAuthTokenheaderstringNo
ShortTermRentalInventoryResponse Parameters:
NameParameterData TypeRequiredDescription
ResultsformList<ShortTermRentalInventoryObj>No
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
StatusbodyBaseResponseResultNo
BaseResponseResult Parameters:
NameParameterData TypeRequiredDescription
StatusCodebodystringNo
LoginbodystringNo
ErrorCodebodystringNo
ErrorDisplayTextbodystringNo
ErrorMessagebodystringNo
DomainNamebodystringNo
IpAddressbodystringNo
ShortTermRentalInventoryObj Parameters:
NameParameterData TypeRequiredDescription
RatesformList<ShortTermRentalInventoryRate>No
AvailableSerialPksformList<long>No
SaqPkformlong?No
SkuPkformlong?No
PkhPkformlong?No
SkuformstringNo
PackageformstringNo
InvTypeformstringNo
AvailableQtyformdecimalNo
ShortTermRentalInventoryRate Parameters:
NameParameterData TypeRequiredDescription
HeaderDescformstringNo
HeaderNotesformstringNo
DescformstringNo
IntervalTypeformstringNo
GroupformstringNo
NotesformstringNo
AmtformdecimalNo
TimeIntervalformintNo

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

{"Results":[{"Rates":[{"HeaderDesc":"String","HeaderNotes":"String","Desc":"String","IntervalType":"String","Group":"String","Notes":"String","Amt":0,"TimeInterval":0}],"AvailableSerialPks":[0],"SaqPk":0,"SkuPk":0,"PkhPk":0,"Sku":"String","Package":"String","InvType":"String","AvailableQty":0}],"Status":{"StatusCode":"String","Login":"String","ErrorCode":"String","ErrorDisplayText":"String","ErrorMessage":"String","DomainName":"String","IpAddress":"String"}}