ID Generation

ID Generation APIs

Generates unique ID/code in the prescribed format

Create new id.

post

API to generate new id based on the id formats passed.

Body

Contract class to receive request.

Responses
201
Id generated sucessfully.
*/*
post
POST /egov-idgen//id/_generate HTTP/1.1
Host: dev.digit.org
Content-Type: */*
Accept: */*
Content-Length: 453

{
  "requestInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "action": "text",
    "did": "text",
    "key": "text",
    "msgId": "text",
    "requesterId": "text",
    "authToken": "text",
    "userInfo": {
      "tenantId": "text",
      "id": 1,
      "userName": "text",
      "mobile": "text",
      "email": "text",
      "primaryrole": [
        {
          "name": "text",
          "description": "text"
        }
      ],
      "additionalroles": [
        {
          "tenantId": "text",
          "roles": [
            {
              "name": "text",
              "description": "text"
            }
          ]
        }
      ]
    }
  },
  "idRequests": [
    {
      "idName": "text",
      "tenantId": "text",
      "format": "text",
      "count": 1
    }
  ]
}
{
  "responseInfo": {
    "apiId": "text",
    "ver": "text",
    "ts": 1,
    "resMsgId": "text",
    "msgId": "text",
    "status": "SUCCESSFUL"
  },
  "idResponses": [
    {
      "id": "text"
    }
  ]
}

Last updated

Was this helpful?