Required role: | Admin |
GET,OPTIONS | /R_CountHistories | ||
---|---|---|---|
GET,OPTIONS | /R_CountHistories/{Ids} | ||
GET,OPTIONS | /R_CountHistories/Date/{Date}/PIds/{ProductIds}/BIds/{BrandIds} | ||
GET,OPTIONS | /R_CountHistories/Year/{Year}/PIds/{ProductIds}/BIds/{BrandIds} | ||
GET,OPTIONS | /R_CountHistories/Month/{Month}/PIds/{ProductIds}/BIds/{BrandIds} | ||
GET,OPTIONS | /R_CountHistories/Date/{Year}/{Month}/PIds/{ProductIds}/BIds/{BrandIds} | ||
GET,OPTIONS | /R_CountHistories/PIds/{ProductIds} | ||
GET,OPTIONS | /R_CountHistories/BIds/{BrandIds} |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Ids | path | List<long> | No | |
Date | path | DateTime? | No | |
Year | path | int? | No | |
Month | path | int? | No | |
ProductIds | path | List<long> | No | |
BrandIds | path | List<long> | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /csv/reply/R_RegistrationCountHistories HTTP/1.1
Host: regapi.pumpalarm.com
Content-Type: text/csv
Content-Length: length
{"Ids":[0],"Date":"\/Date(-62135596800000-0000)\/","Year":0,"Month":0,"ProductIds":[0],"BrandIds":[0]}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length [{"Id":0,"Date":"\/Date(-62135596800000-0000)\/","ProductName":"String","RegistrationHistoryFilterTypeId":0,"RegistrationHistoryFilterValue":0,"Production":0,"Floating":0,"Active":0,"Cancelled":0,"Unsubscribed":0,"Transferred":0,"Exchanged":0,"Error":0}]