Required permission: | CustomerGroup-Setup.GET |
GET | /CustomerGroups | ||
---|---|---|---|
GET | /CustomerGroups/page/{Page} | Get records by given a page number | Each page consists of 20 records |
GET | /CustomerGroups/AcCusGroupID/{AcCusGroupID} | 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. |
AcCusGroupID | path | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CustomerGroups | form | List<AcCusGroup> | 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 |
---|---|---|---|---|
AcCusGroupID | form | string | Yes | Customer Group ID |
AcCusGroupDesc | form | string | Yes | Description |
CreateBy | form | string | No | |
CreateDate | form | DateTime | No | |
EditBy | form | string | No | |
EditDate | form | DateTime | No | |
Stamp | form | int | 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 /CustomerGroups HTTP/1.1 Host: snr2u.com Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"CustomerGroups":[{"AcCusGroupID":"String","AcCusGroupDesc":"String","CreateBy":"String","CreateDate":"\/Date(-62135596800000-0000)\/","EditBy":"String","EditDate":"\/Date(-62135596800000-0000)\/","Stamp":0}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"TotalRecords":0,"TotalRecordsInPage":0}