---
title: "callback API for the /subscription-requests/cm/init to notify a HIU on acceptance/acknowledgement of the request for subscription."
method: POST
path: "/v0.5/subscription-requests/cm/on-init"
tags: ["subscriptions", "cm facing"]
---

# callback API for the /subscription-requests/cm/init to notify a HIU on acceptance/acknowledgement of the request for subscription.

`POST /v0.5/subscription-requests/cm/on-init`

This callback API acknowledges the request for subscription from a HIU, and sends back a "id" that will be used when the patient/user approves or denies the subscription.

## Headers

- `Authorization` string, required
- `X-HIU-ID` string, required

## Request body

- HIUSubscriptionRequestReceipt
  - `error` Error
    - `code` 1000 | 10001
    - `message` string
  - `requestId` string, uuid, required — a nonce, unique for each HTTP request
  - `resp` RequestReference, required
    - `requestId` string, uuid, required — the requestId that was passed
  - `subscriptionRequest` object
    - `id` string, uuid, required — id of the consent-request created
  - `timestamp` string, date-time, required — Date time format in UTC, includes miliseconds YYYY-MM-DDThh:mm:ss.vZ

## Response `202`

Request Accepted.

## Other responses

- `401` — **Causes:** * Invalid/Expired/Empty token.
- `500` — **Causes:** * Downstream services are down

---

[API](https://skmtc.net/ndhm/apis/ndhm-gateway.md) · [All operations](https://skmtc.net/ndhm/apis/ndhm-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ndhm/ndhm-gateway/versions/a440e2981b29/schema)
