Skip to content

DRS Integration #28757

Open
33 of 56 issues completed
Open

Description

@mbertucci

WE NEED TO FIGURE OUT document schema, retention schedules

Developer Notes for modernized business integration - switch from minio to DRS.
DRS API spec: https://okagqp-test-bcregrestricted.apigee.io/docs/docserviceproxy/1/overview
Endpoints to use:
Upload a document for the first time:
POST /doc/api/v1/documents/{documentClass}/{documentType}
https://okagqp-test-bcregrestricted.apigee.io/docs/docserviceproxy/1/routes/doc/api/v1/documents/%7BdocumentClass%7D/%7BdocumentType%7D/post

Replace a previously uploaded document:
PUT /doc/api/v1/documents/{docServiceId}
https://okagqp-test-bcregrestricted.apigee.io/docs/docserviceproxy/1/routes/doc/api/v1/documents/%7BdocServiceId%7D/put

Update information associated with a document:
PATCH /doc/api/v1/documents/{docServiceId}
https://okagqp-test-bcregrestricted.apigee.io/docs/docserviceproxy/1/routes/doc/api/v1/documents/%7BdocServiceId%7D/patch

Delete a document:
DELETE /doc/api/v1/documents/{docServiceId}
https://okagqp-test-bcregrestricted.apigee.io/docs/docserviceproxy/1/routes/doc/api/v1/documents/%7BdocServiceId%7D/delete

Alternatively mark a document as removed with a specific PATCH payload:
PATCH /doc/api/v1/documents/{docServiceId}

{
  "removed": true
}

Download a document:
GET doc/api/v1/searches/{documentClass}?documentServiceId={docServiceId}
Note: submit the request header Accept=application/pdf to get the doc data instead of the default son with a cloud storage download link.
https://okagqp-test-bcregrestricted.apigee.io/docs/docserviceproxy/1/routes/doc/api/v1/searches/%7BdocumentClass%7D/get

Note: if a filing such as a COOP incorporation/change has multitple documents, use the same consumerDocumentId returned in a POST response (auto-generated if not submitted). In other words, use the first document response consumerDocumentId as the second document request consumerDocumentId

DRS Business property mapping:
consumerIdentifer: business identifier
consumerFilename: ledger filing document file name
consumerFilingDateTime: business filing date
consumerReferenceId: business filing id

Suggestion: use the existing business api configuration in src/legal_api/reports/report.py to specify the DRS document type AND document class for each filing document. For example:

    static_reports = {
        "certifiedRules": {
            "documentType": "COOP_RULES",
            "documentClass": "COOP"
        },
        "certifiedMemorandum": {
            "documentType": "COOP_MEMORANDUM",
            "documentClass": "COOP"
        },
        "affidavit": {
            "documentType": "CORP_AFFIDAVIT",
            "documentClass": "CORP"
        },
        "uploadedCourtOrder": {
            "documentType": "CRTO",
            "documentClass": "CORP"
        }
    }

Sequence diagram for business - DRS integration:
Business-DRS-client-documents.png

Sub-issues

Sub-issues

33 of 56 Issues completed
Loading 56 sub-issues

Activity

  1. added theissue type on Jun 2, 2025
  2. changed the title [-]MHR Could Have[/-] [+]DRS Integration[/+] on Jun 2, 2025
  3. 48 remaining items

  4. changed the title [-]ASSETS | DRS Integration[/-] [+]DRS Integration[/+] on Jun 2, 2026
  5. doug-lovett commented on Sep 2, 2026

    @doug-lovett
    Collaborator

    @TVWerdal if the scope of this ticket is to track overall DRS integration, then the scanner, business, and MHR integration work is done for requirements to date.
    There is some MHR API work for opening up restricted transfer of ownership registrations to qualified suppliers, but no DRS integration changes.

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

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions