Skip to content

Legal API - Update to disable all NR checks for sandbox #24955

Closed

Description

@argush3

We had previously added code to skip NRs check in the sandbox. At the time, the sandbox only supported validating of filing payloads so any downstream errors were not addressed.

There seems to be at least one other NR check error in the legal api when submitting an IA via the POST https://bcregistry-sandbox.apigee.net/business/api/v2/businesses endpoint. Any such checks will need to be skipped in the sandbox.

TODOs

  • Update all NR checks in legal api to be skipped using the enable-sandbox flag

Activity

  1. added
    Entities - Data Migration
    on Dec 16, 2024
  2. argush3 commented on Dec 16, 2024

    @argush3
    ContributorAuthor

    Example of issue in sandbox currently:

    ### POST create business with NR
    POST {{legal-api-sandbox-base-url}}/businesses
    Account-Id: {{account-id}}
    x-apikey: {{legal-api-sandbox-key}}
    Content-Type: application/json
    
    {
      "filing": {
        "header": {
          "accountId": 52520,
          "name": "incorporationApplication",
          "certifiedBy": "BCREGTEST Delphia EIGHTEEN",
          "date": "2023-07-11",
          "folioNumber": "",
          "isFutureEffective": false
        },
        "incorporationApplication": {
          "nameRequest": {
            "legalType": "BC",
            "nrNumber": "NR 8428641",
            "legalName": "AC BC 2023.JUL.11 20.09 TEST CORP."
          },
          "nameTranslations": [],
          "offices": {
            "registeredOffice": {
              "deliveryAddress": {
                "addressCity": "Mission",
                "addressCountry": "CA",
                "addressRegion": "BC",
                "deliveryInstructions": "",
                "postalCode": "V2V 7E6",
                "streetAddress": "32434 Richards Ave",
                "streetAddressAdditional": ""
              },
              "mailingAddress": {
                "addressCity": "Mission",
                "addressCountry": "CA",
                "addressRegion": "BC",
                "deliveryInstructions": "",
                "postalCode": "V2V 7E6",
                "streetAddress": "32434 Richards Ave",
                "streetAddressAdditional": ""
              }
            },
            "recordsOffice": {
              "deliveryAddress": {
                "addressCity": "Mission",
                "addressCountry": "CA",
                "addressRegion": "BC",
                "deliveryInstructions": "",
                "postalCode": "V2V 7E6",
                "streetAddress": "32434 Richards Ave",
                "streetAddressAdditional": ""
              },
              "mailingAddress": {
                "addressCity": "Mission",
                "addressCountry": "CA",
                "addressRegion": "BC",
                "deliveryInstructions": "",
                "postalCode": "V2V 7E6",
                "streetAddress": "32434 Richards Ave",
                "streetAddressAdditional": ""
              }
            }
          },
          "contactPoint": {
            "email": "nooneget@email.com",
            "phone": "(250) 111-2222"
          },
          "parties": [
            {
              "officer": {
                "id": "0333a572-33b4-4048-af81-d0584c3a99ba",
                "firstName": "BCREGTEST Delphia",
                "lastName": "EIGHTEEN",
                "middleName": "",
                "organizationName": "",
                "partyType": "person",
                "email": "nooneget@email.com"
              },
              "roles": [
                {
                  "roleType": "Completing Party",
                  "appointmentDate": "2023-07-11"
                },
                {
                  "roleType": "Incorporator",
                  "appointmentDate": "2023-07-11"
                },
                {
                  "roleType": "Director",
                  "appointmentDate": "2023-07-11"
                }
              ],
              "mailingAddress": {
                "addressCity": "Vancouver",
                "addressCountry": "CA",
                "addressRegion": "BC",
                "postalCode": "V5N 2J9",
                "streetAddress": "2343 19th Ave E",
                "streetAddressAdditional": ""
              },
              "deliveryAddress": {
                "addressCity": "Vancouver",
                "addressCountry": "CA",
                "addressRegion": "BC",
                "postalCode": "V5N 2J9",
                "streetAddress": "2343 19th Ave E",
                "streetAddressAdditional": ""
              }
            }
          ],
          "shareStructure": {
            "shareClasses": [
              {
                "id": "5002acd6-790d-4bd0-95fa-a799fcc634b2",
                "type": "Class",
                "name": "common Shares",
                "priority": 1,
                "hasMaximumShares": true,
                "maxNumberOfShares": 10000,
                "hasParValue": true,
                "parValue": 100,
                "currency": "CAD",
                "hasRightsOrRestrictions": false,
                "series": []
              }
            ]
          },
          "incorporationAgreement": {
            "agreementType": "sample"
          }
        }
      }
    }

    image.png

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

Metadata

Metadata

Labels

Entities - Data Migration

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions