Public Grievance Redressal Service API
Last updated
Was this helpful?
Last updated
Was this helpful?
Gets the list of service requests for a particular ULB based on search criteria.
POST /rainmaker-pgr/v2/requests/_search HTTP/1.1
Host: egov-micro-dev.egovernments.org
Accept: */*
{
"ResponseInfo": {
"apiId": "text",
"ver": "text",
"ts": 1,
"resMsgId": "text",
"msgId": "text",
"status": "SUCCESSFUL"
},
"services": [
{
"citizen": {
"tenantId": "text",
"name": "text",
"mobileNumber": "text"
},
"tenantId": "text",
"serviceCode": "text",
"serviceRequestId": "text",
"description": "text",
"lat": 1,
"long": 1,
"address": "text",
"addressId": "text",
"email": "text",
"deviceId": "text",
"accountId": "text",
"firstName": "text",
"lastName": "text",
"phone": "text",
"attributes": {},
"status": "New",
"source": "sms",
"expectedTime": 1,
"feedback": "text",
"rating": "text",
"landmark": "text",
"auditDetails": {
"createdBy": "text",
"lastModifiedBy": "text",
"createdTime": 1,
"lastModifiedTime": 1
}
}
],
"actionHistory": [
{
"actions": [
{
"tenantId": "text",
"by": "text",
"isInternal": "text",
"when": 1,
"businessKey": "text",
"action": "text",
"status": "text",
"assignee": "text",
"media": [
"text"
],
"comment": "text"
}
]
}
]
}
Create new service requests - supports batch - please note that in case of errors entire batch is rejected
Request object to fetch the report data
POST /rainmaker-pgr/v2/requests/_create HTTP/1.1
Host: egov-micro-dev.egovernments.org
Content-Type: application/json
Accept: */*
Content-Length: 685
{
"RequestInfo": {
"apiId": "text",
"ver": "text",
"ts": 1,
"action": "text",
"did": "text",
"key": "text",
"msgId": "text",
"requesterId": "text",
"authToken": "text"
},
"services": [
{
"citizen": {
"tenantId": "text",
"name": "text",
"mobileNumber": "text"
},
"tenantId": "text",
"serviceCode": "text",
"description": "text",
"lat": 1,
"long": 1,
"address": "text",
"addressId": "text",
"email": "text",
"deviceId": "text",
"accountId": "text",
"firstName": "text",
"lastName": "text",
"phone": "text",
"attributes": {},
"status": "New",
"source": "sms",
"expectedTime": 1,
"feedback": "text",
"rating": "text",
"landmark": "text"
}
],
"actionInfo": [
{
"tenantId": "text",
"isInternal": "text",
"action": "text",
"assignee": "text",
"media": [
"text"
],
"comment": "text"
}
]
}
{
"ResponseInfo": {
"apiId": "text",
"ver": "text",
"ts": 1,
"resMsgId": "text",
"msgId": "text",
"status": "SUCCESSFUL"
},
"services": [
{
"citizen": {
"tenantId": "text",
"name": "text",
"mobileNumber": "text"
},
"tenantId": "text",
"serviceCode": "text",
"serviceRequestId": "text",
"description": "text",
"lat": 1,
"long": 1,
"address": "text",
"addressId": "text",
"email": "text",
"deviceId": "text",
"accountId": "text",
"firstName": "text",
"lastName": "text",
"phone": "text",
"attributes": {},
"status": "New",
"source": "sms",
"expectedTime": 1,
"feedback": "text",
"rating": "text",
"landmark": "text",
"auditDetails": {
"createdBy": "text",
"lastModifiedBy": "text",
"createdTime": 1,
"lastModifiedTime": 1
}
}
],
"actionHistory": [
{
"actions": [
{
"tenantId": "text",
"by": "text",
"isInternal": "text",
"when": 1,
"businessKey": "text",
"action": "text",
"status": "text",
"assignee": "text",
"media": [
"text"
],
"comment": "text"
}
]
}
]
}
Updates service request - supports batch - please note that in case of errors entire batch is rejected
Request object to fetch the report data
POST /rainmaker-pgr/v2/requests/_update HTTP/1.1
Host: egov-micro-dev.egovernments.org
Content-Type: application/json
Accept: */*
Content-Length: 685
{
"RequestInfo": {
"apiId": "text",
"ver": "text",
"ts": 1,
"action": "text",
"did": "text",
"key": "text",
"msgId": "text",
"requesterId": "text",
"authToken": "text"
},
"services": [
{
"citizen": {
"tenantId": "text",
"name": "text",
"mobileNumber": "text"
},
"tenantId": "text",
"serviceCode": "text",
"description": "text",
"lat": 1,
"long": 1,
"address": "text",
"addressId": "text",
"email": "text",
"deviceId": "text",
"accountId": "text",
"firstName": "text",
"lastName": "text",
"phone": "text",
"attributes": {},
"status": "New",
"source": "sms",
"expectedTime": 1,
"feedback": "text",
"rating": "text",
"landmark": "text"
}
],
"actionInfo": [
{
"tenantId": "text",
"isInternal": "text",
"action": "text",
"assignee": "text",
"media": [
"text"
],
"comment": "text"
}
]
}
{
"ResponseInfo": {
"apiId": "text",
"ver": "text",
"ts": 1,
"resMsgId": "text",
"msgId": "text",
"status": "SUCCESSFUL"
},
"services": [
{
"citizen": {
"tenantId": "text",
"name": "text",
"mobileNumber": "text"
},
"tenantId": "text",
"serviceCode": "text",
"serviceRequestId": "text",
"description": "text",
"lat": 1,
"long": 1,
"address": "text",
"addressId": "text",
"email": "text",
"deviceId": "text",
"accountId": "text",
"firstName": "text",
"lastName": "text",
"phone": "text",
"attributes": {},
"status": "New",
"source": "sms",
"expectedTime": 1,
"feedback": "text",
"rating": "text",
"landmark": "text",
"auditDetails": {
"createdBy": "text",
"lastModifiedBy": "text",
"createdTime": 1,
"lastModifiedTime": 1
}
}
],
"actionHistory": [
{
"actions": [
{
"tenantId": "text",
"by": "text",
"isInternal": "text",
"when": 1,
"businessKey": "text",
"action": "text",
"status": "text",
"assignee": "text",
"media": [
"text"
],
"comment": "text"
}
]
}
]
}