Skip to content

Legal API - creating a new business in one call no longer works, a draft is required first #35543

Done

Description

@benjamin-bc-gov

API users used to be able to create a new business (incorporation, amalgamation, continuation in, registration) with a single call to POST /businesses. Since late July 2026 that call is always rejected with:

400 filing/business/identifier does not equal the identifier in the request path.

The reason is that the API makes up the temporary business number (the T-number) during that same call, then checks that the request already contains it. The caller cannot know a number that does not exist yet, so the check can never pass.

The only way that works today is two steps: first create a draft with POST /businesses?draft=true, which returns the T-number, then submit the filing with PUT /businesses/{T-number}/filings/{id} and the T-number in the body.

Who it affects

The sandbox Postman collection. All 14 "one-shot" examples (incorporation, amalgamation, continuation in) fail with this error. The "multi-step" examples still work. See #35453 (bcgov/developer.connect#294, bcgov/lear#4944).
Any vendor whose integration creates businesses in one call. They have been broken since the change went live.

Why it broke

bcgov/lear#4596 (2026-07-22, from #33970) added the rule that the business number in the request body must match the one in the URL.
bcgov/lear#4605 (2026-07-24) excused drafts from that rule, but not the one-call path.
The one automated test that covers the one-call path only runs when a special flag is set, so the build never noticed.

What should happen

POST /businesses without draft=true should accept a valid new business filing again, with the API filling in the temporary number itself. The one-shot Postman examples would then return 201 as they did before.

How to see it

On dev with an API account, send the "File an IA" example from the sandbox collection (1-A. One-shot > Create a Numbered Company) to POST /business/api/v2/businesses. You get the 400 above. Add ?draft=true to the same call and you get 201 with a T-number.

Activity

  1. added
    bug
    Entities Team
    on Nov 9, 2026
  2. self-assigned this
    on Nov 22, 2026
  3. gunanagar commented on Nov 23, 2026

    @gunanagar
    Collaborator

    Tested in Sanbox - Creating IA in one call is working

    Screenshot 2026-11-23 at 10.19.08 AM.png

  4. gunanagar commented on Nov 23, 2026

    @gunanagar
    Collaborator

    Test environment -

    Screenshot 2026-11-23 at 2.07.21 PM.png

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

Metadata

Metadata

Labels

Entities Teambug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions