Registry APIs
Details of the Registry APIs to access and manage registry entities
Last updated
Was this helpful?
Details of the Registry APIs to access and manage registry entities
Last updated
Was this helpful?
Following OpenAPI 3.0 document describes the participant organisations registry and the associated APIs. Same specification can be visualised in Swagger Editor.
Following OpenAPI 3.0 specification details these APIs in detail. These API specs can be opened in swagger editor via this link.
This API is to retrieve details of a single user from the registry, using their user id .
Unique identifier of the user/scheme on the HCX instance
This API is to retrieve details of a single participant from the registry, using their participant code.
Unique identifier of the participant/scheme on the HCX instance
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.
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:
{
"filters": {
"roles": { "eq": "provider" },
"status": { "eq": "Created" }
},
"limit": 10,
"offset": 0
}
{
"filters": {
"roles": { "or": ["provider","payor"] }
}
}
{
"filters": {
"participant_name": { "contains": "Hospital" }
}
}
{
"filters": {
"payment_details.ifsc_code": { "eq": "BANK0001234" }
}
}
This API is to update a participant's information in the registry. participant_code must be mandatorily provided in the request.
No body
This API is to delete a participant from the registry. API only does a soft delete of the participant.
No body
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.
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:
{
"filters": {
"user_id": { "eq": "user01" }
}
}
{
"filters": {
"user_name": { "contains": "user01" }
}
}
{
"filters": {
"tenant_roles.roles": { "eq": "admin" }
}
}
This API is to update a user's information in the registry. user_id must be mandatorily provided in the request.
This API is to delete a user from the registry. API only does a soft delete of the user.
This API is to add users to a participant.
This API is to remove users from a participant.