Required permission: | StockColor-Setup.GET |
GET | /StockColors | ||
---|---|---|---|
GET | /StockColors/page/{Page} | Get records by given a page number | Each page consists of 20 records |
GET | /StockColors/AcStockColorID/{AcStockColorID} | Get records for given ID |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Page | path | int? | No | Page Number. Default 1. |
RecordsPerPage | query | int? | No | Records Per Page. Default 20 Records. |
AcStockColorID | path | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
StockColors | form | List<AcStockColor> | No | |
ResponseStatus | form | ResponseStatus | No | |
TotalRecords | form | int | No | Total records in all pages. |
TotalRecordsInPage | form | int | No | Total records in current page. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AcStockColorID | form | string | Yes | Stock Color ID |
AcStockColorDesc | form | string | Yes | Description |
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /StockColors HTTP/1.1 Host: snr2u.com Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"StockColors":[{"AcStockColorID":"String","AcStockColorDesc":"String"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"TotalRecords":0,"TotalRecordsInPage":0}