Required permission: | POSPaymentType-Setup.GET |
GET | /POSPaymentTypes | ||
---|---|---|---|
GET | /POSPaymentTypes/page/{Page} | Get records by given a page number | Each page consists of 20 records |
GET | /POSPaymentTypes/AcPaymentCode/{AcPaymentCode} | Get records for given ID |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Page | path | int? | No | |
AcPaymentCode | path | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
POSPaymentTypes | form | List<AcPayment> | No | |
ResponseStatus | form | ResponseStatus | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
AcPaymentCode | form | NVARCHAR(10) | No | Payment Code |
AcPaymentDesc | form | NVARCHAR(100) | No | Payment Description |
PaymentType | form | NVARCHAR(20) | No | Payment Type |
Active | form | NVARCHAR(1) | No | Active (Y/N) |
PaymentValue | form | Numeric(18,2) | No | Payment Value of the code. Typically applicable to Payment Type = 'CASH' |
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 /POSPaymentTypes HTTP/1.1 Host: snr2u.com Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"POSPaymentTypes":[{"AcPaymentCode":"String","AcPaymentDesc":"String","PaymentType":"String","Active":"String","PaymentValue":0}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}