| GET | /GetCounters |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Result | form | List<Counters> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| id | form | int | No | |
| CounterName | form | string | No | |
| branch_id | form | int | No | |
| fuel_id | form | int | No | |
| fcount | form | decimal | No | |
| rcount | form | decimal | No | |
| spend | form | bool | 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 /GetCounters HTTP/1.1 Host: axfuel.apex.ge Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Result":[{"id":0,"CounterName":"String","branch_id":0,"fuel_id":0,"fcount":0,"rcount":0,"spend":false}]}