Skip to content

Auth API - Mitigate Multiple Draft Creation from Single NR among Various accounts #29808

Closed
2 of 2 issues completed

Description

@Rajandeep98

Different Account Users are allowed to affiliate same NR, should they see each other's draft

Payment Handling

What happens if one account initiates payment and it remains in a pending state?
Can another account initiate a second payment for the same filing?
Will the payment API prevent duplicate payments for the same filing?
should we handle simultaneous payment attempts from different accounts?

Numbered Business Logic

fallback process if a business is numbered and does not have an NR?

Draft Deletion Logic

If one account deletes a draft for a shared NR, should it be deleted for all other affiliated accounts as well?
Are drafts scoped to the NR or to the account/org that created them?

Test Notes

See sub-issues for other scenarios of this same issue.

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added
    Entities Team
    on Jul 28, 2025
  2. added theissue type on Jul 28, 2025
  3. Rajandeep98 commented on Jul 28, 2025

    @Rajandeep98
    CollaboratorAuthor

    From Auth api <> would it be needed to inform back to lear as well?

  4. severinbeauvais commented on Sep 11, 2025

    @severinbeauvais
    Collaborator

    My take on this:

    What happens if one account initiates payment and it remains in a pending state?

    All accounts would see the (same) draft in the same state (pending).

    Can another account initiate a second payment for the same filing?

    Normally, no. Once payment is initiated, another account cannot do it again.

    However, it might possible for a second account to cancel a failed payment and initiate another one. This is probably OK.

    I'm wondering if there might be a very small window where 2 accounts could try paying at the same time. I haven't tested this and I don't know what would happen.

    Will the payment API prevent duplicate payments for the same filing?
    should we handle simultaneous payment attempts from different accounts?

    See "I'm wondering..." above.

    fallback process if a business is numbered and does not have an NR?

    No fallback needed. Numbered businesses do not have an affiliated NR to affect them.

    This also means that multiple accounts cannot see the same named draft IA, which I think is OK.

    If one account deletes a draft for a shared NR, should it be deleted for all other affiliated accounts as well?

    Sort of. I'm imagining that there's only 1 draft to delete here, but there may be several affiliations to update.

    Are drafts scoped to the NR or to the account/org that created them?

    In this design, no. All accounts that had affiliated the NR are equal in terms of doing something with the NR or draft or business.

    If we want to scope a NR to an initial account then this complicates things a fair bit.

  5. severinbeauvais commented on Nov 4, 2025

    @severinbeauvais
    Collaborator

    I changed this ticket's parent because the duplicate issues (which are now sub-issues here) had that other epic.

    cc @OlgaPotiagalova

  6. changed the title [-]Names - Mitigate Multiple Draft Creation from Single NR among Various accounts[/-] [+]Auth API - Mitigate Multiple Draft Creation from Single NR among Various accounts[/+] on Nov 4, 2025
  7. removed their assignment
    on Nov 6, 2025
  8. severinbeauvais commented on Dec 19, 2025

    @severinbeauvais
    Collaborator

    This ticket/epic and the sub-tickets have been moved to the Icebox for later consideration.

    If affiliations are moved from Auth to Business soon then that work can resolve the subject issue.

    If affiliation are moved from Auth to Business in a long time then we should consider doing this work in the current API.

  9. mstanton1 commented on Feb 5, 2026

    @mstanton1
    Collaborator

    Current rules state:

    Draft Ownership & Shared Access:
    Users authorized to access a company on an account (as determined by delegation policy) must have access to the companies drafts on that account
    A client may initiate a draft, and authorized staff may continue or complete it.

    • this means if a draft is created on one account, another account will never have access to that draft
    • it is possible that two accounts link to an NR, but once an NR is consumed it cannot be used again
    • if two accounts start separate incorporation applications (one on each account) using the same NR each filing is still distinct, and the first one will be able to go through
    • numbered companies are always issued the next available number so there is no race condition here

    Closing as this is not something that we need to address for MVP. This can be revisited if we find new user trends.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Entities TeamPriority3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions