| GET | /Distribution/SalesQuantityPlanView/{PlanId} | ||
|---|---|---|---|
| GET | /Distribution/SalesQuantityPlanView |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PlanId | path | int? | No | |
| YearN | query | int | No | |
| MonthN | query | int | No | |
| PresalerId | query | int? | No | |
| ProducerId | query | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Result | form | List<SaleQuantityPlanView> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| NYear | form | int | No | |
| NMonth | form | int | No | |
| MobileUserId | form | int | No | |
| UserName | form | string | No | |
| NameU | form | string | No | |
| ProducerId | form | string | No | |
| ProducerN | form | string | No | |
| CategoryId | form | string | No | |
| CategoryN | form | string | No | |
| Quantity | form | decimal | No | |
| MonthName | form | string | 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.
GET /Distribution/SalesQuantityPlanView/{PlanId} HTTP/1.1
Host: 10.10.0.107
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Result":[{"Id":0,"NYear":0,"NMonth":0,"MobileUserId":0,"UserName":"String","NameU":"String","ProducerId":"String","ProducerN":"String","CategoryId":"String","CategoryN":"String","Quantity":0,"MonthName":"String"}]}