Registry APIs

Details of the Registry APIs to access and manage registry entities

Participating Organisations/Systems Registry APIs

post

This API is to create a participant in the registry. API generates a unique participant code and returns the code in the response on successfule creation of participant.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
Responses
200

OK

application/json
post
/participant/create
get

This API is to retrieve details of a single participant from the registry, using their participant code.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
participant_codestringRequired

Unique identifier of the participant/scheme on the HCX instance

Responses
200

OK

application/json
get
/participant/read/{participant_code}
post

This API is to search for participants in the registry. API returns list of participants matching the input criteria.

Search filter supports all the fields. If multiple filter conditions are provided, they are processed by applying AND operation.

Limit and Offset are optional fields. The limit option allows you to limit the number of rows should be returned in the response, while offset allows you to omit a specified number of rows before the beginning of the result set.

Following are the operations supported by search filter:

  • contains("contains")

  • eq("=")

  • neq("!=")

  • between("range")

  • or("or")

  • startsWith("startsWith")

  • endsWith("endsWith")

  • notContains("notContains")

  • notStartsWith("notStartsWith")

  • notEndsWith("notEndsWith")

  • queryString("queryString")

  • gt(">")

  • lt("<")

  • gte(">=")

  • lte("<=")

Following are few example of search filter usage:

  1. Filters to fetch the list of participants with role provider and status is Created. Search response will return only 10 participants as the limit is 10.
{
  "filters": {
    "roles": { "eq": "provider" },
    "status": { "eq": "Created" }
  },
  "limit": 10,
  "offset": 0
}
  1. Filters to fetch the list of participants with role provider and payor.
{
  "filters": {
    "roles": { "or": ["provider","payor"] }
  }
}
  1. Filters to fetch the list of participants with participant name containing Hospital.
{
  "filters": {
    "participant_name": { "contains": "Hospital" }
  }
}
  1. Filters with nested fields, the below filter will return list of participants with the given ifsc code.
{
  "filters": {
    "payment_details.ifsc_code": { "eq": "BANK0001234" }
  }
}
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
Responses
200

OK

application/json
post
/participant/search
post

This API is to update a participant's information in the registry. participant_code must be mandatorily provided in the request.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
Responses
200

OK

No content

post
/participant/update

No content

post

This API is to delete a participant from the registry. API only does a soft delete of the participant.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
Responses
200

OK

No content

post
/participant/delete

No content

Following OpenAPI 3.0 document describes the participant organisations registry and the associated APIs. Same specification can be visualised in Swagger Editor.

User Registry APIs

post

This API is to create a user in the registry. API generates a unique user id and returns the id in the response on successfull creation of user.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
Responses
200

OK

application/json
post
/user/create
get

This API is to retrieve details of a single user from the registry, using their user id .

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
user_idstringRequired

Unique identifier of the user/scheme on the HCX instance

Responses
200

OK

application/json
get
/user/read/{user_id}
post

This API is to search for users in the registry. API returns list of users matching the input criteria.

Search filter supports all the fields. If multiple filter conditions are provided, they are processed by applying AND operation.

Limit and Offset are optional fields. The limit option allows you to limit the number of rows should be returned in the response, while offset allows you to omit a specified number of rows before the beginning of the result set.

Following are the operations supported by search filter:

  • contains("contains")

  • eq("=")

  • neq("!=")

  • between("range")

  • or("or")

  • startsWith("startsWith")

  • endsWith("endsWith")

  • notContains("notContains")

  • notStartsWith("notStartsWith")

  • notEndsWith("notEndsWith")

  • queryString("queryString")

  • gt(">")

  • lt("<")

  • gte(">=")

  • lte("<=")

Following are few example of search filter usage:

  1. Filters to fetch the list of users with user_id user01@hcx Search response will return the user details.
{
  "filters": {
    "user_id": { "eq": "user01" }
  }
}
  1. Filters to fetch the list of users with user name containing user01.
{
  "filters": {
    "user_name": { "contains": "user01" }
  }
}
  1. Filters with nested fields, the below filter will return list of users with the given role .
{
  "filters": {
    "tenant_roles.roles": { "eq": "admin" }
  }
}
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
Responses
200

OK

application/json
post
/user/search
post

This API is to update a user's information in the registry. user_id must be mandatorily provided in the request.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
Responses
200

OK

application/json
post
/user/update
post

This API is to delete a user from the registry. API only does a soft delete of the user.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
Responses
200

OK

application/json
post
/user/delete
post

This API is to add users to a participant.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
Responses
200

OK

application/json
post
/participant/user/add
post

This API is to remove users from a participant.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
Responses
200

OK

application/json
post
/participant/user/remove

Following OpenAPI 3.0 specification details these APIs in detail. These API specs can be opened in swagger editor via this link.

Last updated

Was this helpful?