Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

References and Notes

Master Project API With Example

Project Create API creates the project when all the Master data details (COA, Government, Expenditure, Department) and Department Entity have been created.

Project Create API takes below attributes in request :

  1. tenantId : This is the Id that will be defined while creating the Ifix Master Government Service.

  2. expenditureId : This is the Id that will be generated while creating the Ifix Master Expenditure Service.

  3. code : This is the project code that needs to be created.

  4. name : This is the project name that needs to be created.

  5. departmentEntityId :  This is the Department Entity Id. If we have to create a project at hierarchy level 1 then we need to pass the Department Entity Id of that corresponding level. It depends on the Department hierarchy level on which the project has to be created and hence the same level Department Entity Id.

For reference, Below is the Dummy project create example :

Request :

Code Block
{
  "requestHeader": {
    "ts": 1627193067,
    "version": "V1",
    "msgId": "Unknown",
    "signature": "NON",
    "userInfo": {
        "uuid": "e4fd96e8-3b6b-4e36-9503-0f14a01af39d"
    }
  },
  "project": {
    "tenantId": "pb",
    "code": "Dummy-001",
    "name": "Dummy-Project",
    "expenditureId": "910f4d23-fc63-48fb-a8fb-f0ad567b788a",
    "departmentEntitytId": "7bdf9514-e2e5-4563-bfea-f5aaa41b2137"
  }
}

Response :

Code Block
{
    "responseHeader": {
        "ts": 1627193067,
        "correlationId": "7ad35d85-3815-49d9-978a-e7c1f65491c6",
        "msgId": "Unknown",
        "status": "successful",
        "signature": "NON",
        "version": "V1"
    },
    "project": [
        {
            "id": "fa7eedda-c2f0-49f7-9d21-46d361f05dea",
            "tenantId": "pb",
            "code": "Dummy-001",
            "name": "Dummy-Project",
            "expenditureId": "910f4d23-fc63-48fb-a8fb-f0ad567b788a",
            "departmentEntitytId": "7bdf9514-e2e5-4563-bfea-f5aaa41b2137",
            "departmentEntity": {
                "id": "7bdf9514-e2e5-4563-bfea-f5aaa41b2137",
                "code": "7278",
                "name": "BARUWAL",
                "departmentId": "b32f0cc1-f4b1-4503-95d6-fdf04d0ea2d4",
                "hierarchyLevel": 6,
                "ancestry": [
                    {
                        "id": "7bdf9514-e2e5-4563-bfea-f5aaa41b2137",
                        "code": "7278",
                        "name": "BARUWAL",
                        "hierarchyLevel": 6
                    }
                ]
            },
            "locationIds": null,
            "auditDetails": {
                "createdBy": "ba28ebe8-ed9c-4cdb-9328-b8e227eb0342",
                "lastModifiedBy": "ba28ebe8-ed9c-4cdb-9328-b8e227eb0342",
                "createdTime": 1639028363464,
                "lastModifiedTime": 1639028363464
            }
        }
    ]
}

Note : Below are the observations from the above example:

  1. Project has been created at hierarchical level 6 (at “BARUWAL”). Since, At the time of project created based on request, Department Entity Id is of “BARUWAL”.

  2. Government , Expenditure, Chart Of Account (COA) and Department have to be created well before creating any project.

  3. Make sure Department Hierarchy and Department Entity have been created well before creating any project.