Last updated 2 years ago
Was this helpful?
Create/Add new department on iFix for a tenant
Department request along with request metadata
RequestHeader should be used to carry meta information about the requests to the server as described in the fields below. All eGov APIs will use requestHeader as a part of the request body to carry this meta information. Some of this information will be returned back from the server as part of the ResponseHeader in the response body to ensure correlation.
Captures the department attributes
Contains the ResponseHeader and the enriched Department information
POST /fiscal-event-service/department/v1/_create HTTP/1.1 Host: <server-address> Content-Type: application/json Accept: */* Content-Length: 169 { "requestHeader": { "ts": 1, "version": "text", "msgId": "text", "signature": "text" }, "department": { "tenantId": "text", "code": "text", "name": "text", "isNodal": true, "parent": "text" } }
Request has been accepted for processing
{ "responseHeader": { "ts": 1, "correlationId": "text", "msgId": "text", "status": "SUCCESS", "signature": "text", "version": "text" }, "department": [ { "id": "text", "tenantId": "text", "code": "text", "name": "text", "isNodal": true, "parent": "text", "auditDetails": { "createdBy": "text", "lastModifiedBy": "text", "createdTime": 1, "lastModifiedTime": 1 } } ] }
Based on the criteria get the list of departments.
Department search request along with request metadata. Defoult operator b/w multiple criteria is AND.
The object contains all the search criteria of the Department
POST /fiscal-event-service/department/v1/_search HTTP/1.1 Host: <server-address> Content-Type: application/json Accept: */* Content-Length: 151 { "requestHeader": { "ts": 1, "version": "text", "msgId": "text", "signature": "text" }, "criteria": { "Ids": [ "text" ], "tenantId": "text", "name": "text", "code": "text" } }
Successful response
Create/Add new Expenditure on iFix for a tenant
Expenditure request along with request metadata
Captures the Expenditure attributes
Contains the ResponseHeader and the enriched Expenditure information
POST /fiscal-event-service/expenditure/v1/_create HTTP/1.1 Host: <server-address> Content-Type: application/json Accept: */* Content-Length: 177 { "requestHeader": { "ts": 1, "version": "text", "msgId": "text", "signature": "text" }, "expenditure": { "tenantId": "text", "code": "text", "name": "text", "type": "Scheme", "departmentId": "text" } }
{ "responseHeader": { "ts": 1, "correlationId": "text", "msgId": "text", "status": "SUCCESS", "signature": "text", "version": "text" }, "Expenditure": [ { "id": "text", "tenantId": "text", "code": "text", "name": "text", "type": "Scheme", "departmentId": "text", "auditDetails": { "createdBy": "text", "lastModifiedBy": "text", "createdTime": 1, "lastModifiedTime": 1 } } ] }
Based on the criteria get the list of Expenditure.
Expenditure search request along with request metadata. Defoult operator b/w multiple criteria is AND.
The object contains all the search criteria of the Expenditure
POST /fiscal-event-service/expenditure/v1/_search HTTP/1.1 Host: <server-address> Content-Type: application/json Accept: */* Content-Length: 151 { "requestHeader": { "ts": 1, "version": "text", "msgId": "text", "signature": "text" }, "criteria": { "Ids": [ "text" ], "tenantId": "text", "name": "text", "code": "text" } }
Create/Add new project on iFix for a tenant
Project request along with request metadata
Contains the ResponseHeader and the enriched Project information
POST /fiscal-event-service/project/v1/_create HTTP/1.1 Host: <server-address> Content-Type: application/json Accept: */* Content-Length: 224 { "requestHeader": { "ts": 1, "version": "text", "msgId": "text", "signature": "text" }, "project": { "id": "text", "tenantId": "text", "code": "text", "name": "text", "expenditureId": "text", "departmentEntityIds": [ "text" ], "locationIds": [ "text" ] } }
{ "responseHeader": { "ts": 1, "correlationId": "text", "msgId": "text", "status": "SUCCESS", "signature": "text", "version": "text" }, "project": [ { "id": "text", "tenantId": "text", "code": "text", "name": "text", "expenditureId": "text", "departmentEntityIds": [ "text" ], "locationIds": [ "text" ], "auditDetails": { "createdBy": "text", "lastModifiedBy": "text", "createdTime": 1, "lastModifiedTime": 1 } } ] }
Update existing project on iFix for a tenant
Captures the Project attributes
POST /fiscal-event-service/project/v1/_update HTTP/1.1 Host: <server-address> Content-Type: application/json Accept: */* Content-Length: 224 { "requestHeader": { "ts": 1, "version": "text", "msgId": "text", "signature": "text" }, "project": { "id": "text", "tenantId": "text", "code": "text", "name": "text", "expenditureId": "text", "departmentEntityIds": [ "text" ], "locationIds": [ "text" ] } }
Based on the criteria get the list of Project.
Project search request along with request metadata. Default operator b/w multiple criteria is AND
The object contains all the search criteria of the Project
POST /fiscal-event-service/project/v1/_search HTTP/1.1 Host: <server-address> Content-Type: application/json Accept: */* Content-Length: 244 { "requestHeader": { "ts": 1, "version": "text", "msgId": "text", "signature": "text" }, "criteria": { "Ids": [ "text" ], "tenantId": "text", "name": "text", "code": "text", "expenditureId": "text", "departmentId": "text", "departmentEntityId": "text", "locationId": "text" } }