Endpoints for sending OTP to beneficiaries.
Send a visit OTP to the beneficiary
Sends a one-time password to the beneficiary's registered contact, used to authorize starting a visit in the OTP flow.
Related documentation: Send OTP
Headers
X-Facility-IdFacility Registry (FR) code identifying the facility. Required when authenticating with a service-account token.
X-Facility-Id-TypeType of identifier supplied in X-Facility-Id. Currently only fr-code is supported.
Send a visit OTP to the beneficiary › Request Body
intervention_codesList of SHA intervention codes for the services being authorized in this visit.
patient_idThe beneficiary's Client Registry identifier (dummy example).
contact_idIdentifier of the specific registered contact to which the OTP should be sent. When omitted, the beneficiary's primary confirmed contact is used. This ID can be obtained from the Get Beneficiary Contacts endpoint.
Send a visit OTP to the beneficiary › Responses
OTP sent successfully
@Description Response data payload containing operation details @Example {"status": "success"}
message@Description Success message describing the operation result @Example "Visit has been successfully started"
Send a discharge OTP to the beneficiary
Sends a one-time password to the beneficiary's registered contact, used to authorize discharging the patient in the OTP flow.
Related documentation: Send Discharge OTP
Headers
X-Facility-IdFacility Registry (FR) code identifying the facility. Required when authenticating with a service-account token.
X-Facility-Id-TypeType of identifier supplied in X-Facility-Id. Currently only fr-code is supported.
Send a discharge OTP to the beneficiary › Request Body
consent_tokenConsent token issued when the visit was authorized, required to authorize the discharge OTP (dummy example).
patient_idThe beneficiary's Client Registry identifier (dummy example).
Send a discharge OTP to the beneficiary › Responses
OTP sent successfully
@Description Response data payload containing operation details @Example {"status": "success"}
message@Description Success message describing the operation result @Example "Visit has been successfully started"

