Use Case APIs
Send sandbox NHCX use case requests and callbacks with encrypted JWE payloads.
Use these APIs to send NHCX use case messages in the sandbox.
Each request uses a bearer token and a JSON body.
Encrypted payloads
The source payloads are encrypted JWE values. Replace JWE_PAYLOAD with a valid encrypted payload.
Source URL typo
The source URL for paymentnotice on_request misses a slash before hcx. This page uses the standard sandbox host path.
POST /v1/insuranceplan/on_request
https://apisbx.abdm.gov.in/hcx/v1/insuranceplan/on_requestSend an insurance plan response callback.
Headers
| Header | Value | Notes |
|---|---|---|
Accept | application/json | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
bearer_auth | $TOKEN | The source uses Postman bearer auth. |
Request body
{
"type": "JWEPayload",
"payload": "<JWE_PAYLOAD>"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/v1/insuranceplan/on_request" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '
{
"type": "JWEPayload",
"payload": "<JWE_PAYLOAD>"
}
'POST /v1/insuranceplan/request
https://apisbx.abdm.gov.in/hcx/v1/insuranceplan/requestSend an insurance plan request.
Headers
| Header | Value | Notes |
|---|---|---|
Accept | application/json | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
bearer_auth | $TOKEN | The source uses Postman bearer auth. |
Request body
{
"payload": "<JWE_PAYLOAD>"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/v1/insuranceplan/request" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '
{
"payload": "<JWE_PAYLOAD>"
}
'POST /v1/coverageeligibility/check
https://apisbx.abdm.gov.in/hcx/v1/coverageeligibility/checkSend a coverage eligibility check request.
Headers
| Header | Value | Notes |
|---|---|---|
Accept | application/json | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
bearer_auth | $TOKEN | The source uses Postman bearer auth. |
Request body
{
"payload": "<JWE_PAYLOAD>"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/v1/coverageeligibility/check" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '
{
"payload": "<JWE_PAYLOAD>"
}
'POST /v1/coverageeligibility/on_check
https://apisbx.abdm.gov.in/hcx/v1/coverageeligibility/on_checkSend a coverage eligibility callback.
Headers
| Header | Value | Notes |
|---|---|---|
Accept | application/json | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
bearer_auth | $TOKEN | The source uses Postman bearer auth. |
Request body
{
"type": "JWEPayload",
"payload": "<JWE_PAYLOAD>"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/v1/coverageeligibility/on_check" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '
{
"type": "JWEPayload",
"payload": "<JWE_PAYLOAD>"
}
'POST /v1/preauth/submit
https://apisbx.abdm.gov.in/hcx/v1/preauth/submitSend a preauth submit request.
Headers
| Header | Value | Notes |
|---|---|---|
Accept | application/json | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
bearer_auth | $TOKEN | The source uses Postman bearer auth. |
Request body
{
"payload": "<JWE_PAYLOAD>"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/v1/preauth/submit" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '
{
"payload": "<JWE_PAYLOAD>"
}
'POST /v1/preauth/on_submit
https://apisbx.abdm.gov.in/hcx/v1/preauth/on_submitSend a preauth submit callback.
Headers
| Header | Value | Notes |
|---|---|---|
Accept | application/json | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
bearer_auth | $TOKEN | The source uses Postman bearer auth. |
Request body
{
"type": "JWEPayload",
"payload": "<JWE_PAYLOAD>"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/v1/preauth/on_submit" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '
{
"type": "JWEPayload",
"payload": "<JWE_PAYLOAD>"
}
'POST /v1/claim/submit
https://apisbx.abdm.gov.in/hcx/v1/claim/submitSend a claim submit request.
Headers
| Header | Value | Notes |
|---|---|---|
Accept | application/json | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
bearer_auth | $TOKEN | The source uses Postman bearer auth. |
Request body
{
"payload": "<JWE_PAYLOAD>"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/v1/claim/submit" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '
{
"payload": "<JWE_PAYLOAD>"
}
'POST /v1/claim/on_submit
https://apisbx.abdm.gov.in/hcx/v1/claim/on_submitSend a claim submit callback.
Headers
| Header | Value | Notes |
|---|---|---|
Accept | application/json | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
bearer_auth | $TOKEN | The source uses Postman bearer auth. |
Request body
{
"type": "JWEPayload",
"payload": "<JWE_PAYLOAD>"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/v1/claim/on_submit" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '
{
"type": "JWEPayload",
"payload": "<JWE_PAYLOAD>"
}
'POST /v1/paymentnotice/request
https://apisbx.abdm.gov.in/hcx/v1/paymentnotice/requestSend a payment notice request.
Headers
| Header | Value | Notes |
|---|---|---|
Accept | application/json | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
bearer_auth | $TOKEN | The source uses Postman bearer auth. |
Request body
{
"payload": "<JWE_PAYLOAD>"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/v1/paymentnotice/request" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '
{
"payload": "<JWE_PAYLOAD>"
}
'POST /v1/paymentnotice/on_request
https://apisbx.abdm.gov.in/hcx/v1/paymentnotice/on_requestSend a payment notice callback.
Headers
| Header | Value | Notes |
|---|---|---|
Accept | application/json | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
bearer_auth | $TOKEN | The source uses Postman bearer auth. |
Request body
{
"type": "JWEPayload",
"payload": "<JWE_PAYLOAD>"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/v1/paymentnotice/on_request" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '
{
"type": "JWEPayload",
"payload": "<JWE_PAYLOAD>"
}
'POST /v1/task/submit (Reprocess)
https://apisbx.abdm.gov.in/hcx/v1/task/submitSend a task reprocess request.
Headers
| Header | Value | Notes |
|---|---|---|
Accept | application/json | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
bearer_auth | $TOKEN | The source uses Postman bearer auth. |
Request body
{
"payload": "<JWE_PAYLOAD>"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/v1/task/submit" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '
{
"payload": "<JWE_PAYLOAD>"
}
'POST /v1/task/on_submit (Reprocess)
https://apisbx.abdm.gov.in/hcx/v1/task/on_submitSend a task reprocess callback.
Headers
| Header | Value | Notes |
|---|---|---|
Accept | application/json | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
bearer_auth | $TOKEN | The source uses Postman bearer auth. |
Request body
{
"type": "JWEPayload",
"payload": "<JWE_PAYLOAD>"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/v1/task/on_submit" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '
{
"type": "JWEPayload",
"payload": "<JWE_PAYLOAD>"
}
'POST /v1/communication/request
https://apisbx.abdm.gov.in/hcx/v1/communication/requestSend a communication request.
Headers
| Header | Value | Notes |
|---|---|---|
Accept | application/json | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
bearer_auth | $TOKEN | The source uses Postman bearer auth. |
Request body
{
"payload": "<JWE_PAYLOAD>"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/v1/communication/request" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '
{
"payload": "<JWE_PAYLOAD>"
}
'POST /communication/on_request
https://apisbx.abdm.gov.in/hcx/v1/communication/on_requestSend a communication callback.
Headers
| Header | Value | Notes |
|---|---|---|
Accept | application/json | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
bearer_auth | $TOKEN | The source uses Postman bearer auth. |
Request body
{
"type": "JWEPayload",
"payload": "<JWE_PAYLOAD>"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/v1/communication/on_request" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '
{
"type": "JWEPayload",
"payload": "<JWE_PAYLOAD>"
}
'POST /v1/search/submit
https://apisbx.abdm.gov.in/hcx/v1/search/submitSend a search submit request.
Headers
| Header | Value | Notes |
|---|---|---|
Accept | application/json | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
bearer_auth | $TOKEN | The source uses Postman bearer auth. |
Request body
{
"payload": "<JWE_PAYLOAD>"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/v1/search/submit" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '
{
"payload": "<JWE_PAYLOAD>"
}
'POST /v1/search/on_submit
https://apisbx.abdm.gov.in/hcx/v1/search/on_submitSend a search submit callback.
Headers
| Header | Value | Notes |
|---|---|---|
Accept | application/json | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
bearer_auth | $TOKEN | The source uses Postman bearer auth. |
Request body
{
"type": "JWEPayload",
"payload": "<JWE_PAYLOAD>"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/v1/search/on_submit" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '
{
"type": "JWEPayload",
"payload": "<JWE_PAYLOAD>"
}
'POST /v1/predetermination/submit
https://apisbx.abdm.gov.in/hcx/v1/predetermination/submitSend a predetermination submit request.
Headers
| Header | Value | Notes |
|---|---|---|
Accept | application/json | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
bearer_auth | $TOKEN | The source uses Postman bearer auth. |
Request body
{
"payload": "<JWE_PAYLOAD>"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/v1/predetermination/submit" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '
{
"payload": "<JWE_PAYLOAD>"
}
'POST /v1/predetermination/on_submit
https://apisbx.abdm.gov.in/hcx/v1/predetermination/on_submitSend a predetermination callback.
Headers
| Header | Value | Notes |
|---|---|---|
Accept | application/json | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
bearer_auth | $TOKEN | The source uses Postman bearer auth. |
Request body
{
"type": "JWEPayload",
"payload": "<JWE_PAYLOAD>"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/v1/predetermination/on_submit" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '
{
"type": "JWEPayload",
"payload": "<JWE_PAYLOAD>"
}
'POST /v1/status
https://apisbx.abdm.gov.in/hcx/v1/statusSend a status request.
Headers
| Header | Value | Notes |
|---|---|---|
Accept | application/json | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
bearer_auth | $TOKEN | The source uses Postman bearer auth. |
Request body
{
"payload": "<JWE_PAYLOAD>"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/v1/status" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '
{
"payload": "<JWE_PAYLOAD>"
}
'POST /v1/on_status
https://apisbx.abdm.gov.in/hcx/v1/on_statusSend a status callback.
Headers
| Header | Value | Notes |
|---|---|---|
Accept | application/json | The source sets this header. |
Content-Type | application/json | Send a JSON body. |
bearer_auth | $TOKEN | The source uses Postman bearer auth. |
Request body
{
"type": "JWEPayload",
"payload": "<JWE_PAYLOAD>"
}cURL
curl -X POST "https://apisbx.abdm.gov.in/hcx/v1/on_status" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '
{
"type": "JWEPayload",
"payload": "<JWE_PAYLOAD>"
}
'Sources
- usecase-apis-sandbox-postman.md (NHCX sandbox portal)
