Skip to content

MHR API - Include Rejection Report in Email Notification #32292

Closed

Description

@cameron-eyds

When staff rejects a QS submitted registration, update the current flow to:

  • Generate a review rejection letter report.
  • Call the DRS API to store the report as an MHR document class and CORR (correspondence) document type. Use a SA generated token with the SYSTEM role. Submit a POST a /doc/api/v1/documents/MHR/CORR?... request.
  • Store the document service ID returned in the DRS API response as a new column named drs_id in the mhr_review_registrations table (model update).
  • Include the document link returned in the DRS API response in the rejection email sent to the QS. (API and environment variable update).

Activity

  1. PCC199 commented on Feb 4, 2026

    @PCC199
    Contributor
  2. self-assigned this
    on Feb 10, 2026
  3. chenhongjing commented on Feb 17, 2026

    @chenhongjing

    @chdivyareddy FYI, this work cannot be tested without manual db operation to populate mhr_review_registrations.document_id field at this moment. Please let me know if you need any help to get it updated manually.

  4. chdivyareddy commented on Feb 21, 2026

    @chdivyareddy
    Collaborator

    Verified in DEV!

    image.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions