AIM Web Services

<back to all web services

SaleInfoRequest

SaleInfo
Requires active-e Inventory Service

The following routes are available for this service:
GET/api/SaleInfo
SaleInfoRequest Parameters:
NameParameterData TypeRequiredDescription
LocationIdquerylong?No
DateTimequeryDateTime?NoIf sent, only sales that are active during the sent Date/Time are returned. Otherwise, the current Date/Time is used
BaseSecureRequest Parameters:
NameParameterData TypeRequiredDescription
TokenHeaderstringNo
DeviceIdHeaderstringNo
AppIdHeaderstringYes
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
ApiKeyheaderstringYesThis is your AIM API Key provided by Tri-Tech
OAuthTokenheaderstringNo
SaleInfoResponse Parameters:
NameParameterData TypeRequiredDescription
SaleRecordsformList<SaleRecord>No
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
StatusbodyBaseResponseResultNo
BaseResponseResult Parameters:
NameParameterData TypeRequiredDescription
StatusCodebodystringNo
LoginbodystringNo
ErrorCodebodystringNo
ErrorDisplayTextbodystringNo
ErrorMessagebodystringNo
DomainNamebodystringNo
IpAddressbodystringNo
SaleRecord Parameters:
NameParameterData TypeRequiredDescription
SadPkformlongNo
SkuPkformlongNo
SaqPkformlongNo
ModelformstringNo
SKUformstringNo
LocationIdformlongNo
StartDateformDateTimeNo
EndDateformDateTimeNo
CustomerAccountformint?No
CustomerDefaultIdformlong?No
ConditionformstringNo
DiscountFromPriceLevelformDiscountFromPriceLevelNo
DiscountByPriceLevelformstringNo
DiscountBySetPriceformdecimal?No
DiscountByAmountformdecimal?No
RecurringSaleformRecurringSaleInfoNo
DiscountFromPriceLevel Parameters:
NameParameterData TypeRequiredDescription
BasePriceLevelformstringNo
DisountPercentageformdecimalNo
RecurringSaleInfo Parameters:
NameParameterData TypeRequiredDescription
DaysformList<RecurringSaleDay>No
RecurringSaleDay Parameters:
NameParameterData TypeRequiredDescription
WeekdayformstringNo
BeginHourformintNo
BeginMinuteformintNo
EndHourformintNo
EndMinuteformintNo

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

{"SaleRecords":[{"SadPk":0,"SkuPk":0,"SaqPk":0,"Model":"String","SKU":"String","LocationId":0,"CustomerAccount":0,"CustomerDefaultId":0,"Condition":"String","DiscountFromPriceLevel":{"BasePriceLevel":"String","DisountPercentage":0},"DiscountByPriceLevel":"String","DiscountBySetPrice":0,"DiscountByAmount":0,"RecurringSale":{"Days":[{"Weekday":"String","BeginHour":0,"BeginMinute":0,"EndHour":0,"EndMinute":0}]}}],"Status":{"StatusCode":"String","Login":"String","ErrorCode":"String","ErrorDisplayText":"String","ErrorMessage":"String","DomainName":"String","IpAddress":"String"}}