...
Code Block |
---|
curl --location --request POST 'http://localhost:8084/mgramseva-ifix-adapter/mGramsevaAdopter/v1/_legacydatatransfer?tenantId=pb.massewal&businessService=WS' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "apiId": "Rainmaker", "ver": ".01", "ts": null, "action": "", "did": "1", "key": "", "msgId": "20170310130900|en_IN", "authToken": null, "correlationId": null, "userInfo": { "id": 1238, "userName": "230566|6nazOXejetsSwLcRS5aclEJD/4e7SzmimN4=", "name": "230566|kBzPQAXbCiQzR3NUY/cLPTzdnmw63ho=", "type": "SYSTEM", "mobileNumber": "230566|6nazOXejetsSwLcRS5aclEJD/4e7SzmimN4=", "emailId": null, "roles": [ { "id": null, "name": "Employee", "code": "EMPLOYEE", "tenantId": "pb" }, { "id": null, "name": "System user", "code": "SYSTEM", "tenantId": "pb" } ], "tenantId": "pb.lodhipur", "uuid": "47ff55dc-c9d0-4f86-8f82-b4d7a24ba59e" } }, "tenantId": ["pb.lodhipur","pb.baruwal"] }' |
With the above curl we will get the demands based on the tenant id and business service we are passing.
Business service can be ‘WS' or ‘EXPENSE.SALARY’ or 'EXPENSE.MISC’ or 'EXPENSE.OM’ etc.
For WS it will be saved as demand and for EXPENSE it will be saved as bill.
...