AIM Web Services

<back to all web services

ShortTermRentalReservationRequest

ShortTermRentalReservation
Requires active-e Short Term Rental Service

The following routes are available for this service:
POST/api/ShortTermRentalReservation
ShortTermRentalReservationRequest Parameters:
NameParameterData TypeRequiredDescription
PickupDatequeryDateTimeYesDate/Time the item is to be picked up.
ReturnDatequeryDateTimeYesDate/Time the item is to be returned.
CustomerAcctqueryintYesAccount of the customer making the reservation
ItemsbodyList<ShortTermRentalItem>No
NotesbodystringNo
BaseSecureRequest Parameters:
NameParameterData TypeRequiredDescription
TokenHeaderstringNo
DeviceIdHeaderstringNo
AppIdHeaderstringYes
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
ApiKeyheaderstringYesThis is your AIM API Key provided by Tri-Tech
OAuthTokenheaderstringNo
ShortTermRentalItem Parameters:
NameParameterData TypeRequiredDescription
PkquerylongYesSasPk, SaqPk, or PkhPk
ItemTypequerystringNoS for SerialNumber, P for Package deal. Empty for normal inventory.
ItemQuantityquerydecimal?NoQuantity of item required. Does not apply to serial#s.
ItemRatequerydecimal?YesItem rate. This is per item, so the total is this multiplied by ItemQuantity.
NotesformstringNo
PackageVariantItemsformList<PackageVariantItem>No
PackageVariantItem Parameters:
NameParameterData TypeRequiredDescription
ModelformstringNo
SkuformstringNo
ShortTermRentalReservationResponse Parameters:
NameParameterData TypeRequiredDescription
RefNumberformstringNo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
StatusbodyBaseResponseResultNo
BaseResponseResult Parameters:
NameParameterData TypeRequiredDescription
StatusCodebodystringNo
LoginbodystringNo
ErrorCodebodystringNo
ErrorDisplayTextbodystringNo
ErrorMessagebodystringNo
DomainNamebodystringNo
IpAddressbodystringNo

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.

POST /api/ShortTermRentalReservation HTTP/1.1 
Host: active-ewebservice.biz 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"CustomerAcct":0,"Items":[{"Pk":0,"ItemType":"String","ItemQuantity":0,"ItemRate":0,"Notes":"String","PackageVariantItems":[{"Model":"String","Sku":"String"}]}],"Notes":"String","Token":"String","DeviceId":"String","AppId":"String","ApiKey":"String","OAuthToken":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"RefNumber":"String","Status":{"StatusCode":"String","Login":"String","ErrorCode":"String","ErrorDisplayText":"String","ErrorMessage":"String","DomainName":"String","IpAddress":"String"}}