Active Costcentres
List of Costcentres
URL
masters/activecostcentres
Method
POST
Request Media type
application/json
Response Media type
application/json
Request Parameters
| Parameter | Data Type | Min | Max | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| key | String | 32 | 32 | M | TKLqMMyipdrM6l11hXcjdo5Pm9DEfWq5 | Key obtained from authentiaction. |
Response Values
| Name | Data Type | Min Length | Max Length | M/O | Sample Value | Comments |
|---|---|---|---|---|---|---|
| costcentres | Array | M | List of Cost centres | |||
| ccname | String | M | KL-53G-2848 | Name of Costcentre | ||
| cccode | Integer | M | 30729 | Cost centre code | ||
| availhrmeterreading | Character | M | T | Need Hour meter reading, F = False, T = True. Will be True for Vehicle,Equipment and Compressor | ||
| cctype | Character | M | COMP | V for Vehicle, E for Equipment, C for Costcentre,COMP for Compressor | ||
| cccategory | String | M | TRANSIT MIXER | Cost centre category | ||
| cccategoryid | Integer | M | 19 | Cost centre category ID | ||
| id | String | M | V1 | Unique id |
Sample Request
{
"key": "QH7LlQ3wQMK9oYEKjeG5QOIVJQT4emeq"
}
Sample Success Response
{
"costcentres": [
{
"ccname": "KL-53G-2848",
"cccode": "30729",
"availhrmeterreading": "T",
"cctype": "COMP",
"cccategory": "TRANSIT MIXER",
"cccategoryid": "19",
"id": "V1"
}
],
"e": 200,
"msg": "Success"
}