Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BAR API should respond with multiple tasks instead of 1 #367

Open
EPortman opened this issue Sep 26, 2024 · 0 comments
Open

BAR API should respond with multiple tasks instead of 1 #367

EPortman opened this issue Sep 26, 2024 · 0 comments
Labels
API Business AR BAR colin-api Names Team Ticket for Names Team to tackle

Comments

@EPortman
Copy link
Collaborator

  • The GET request to BAR/api/v1/business/{identifier}/tasks should return a task for every outstanding filing until the business is up to date. Below is an example of the current response from this endpoint.
  • This change will enable the business store to determine how many filings are required to bring the business up to date.
  • Additionally, the hasFutureEffectiveFilings flag should be investigated. It appears that when an Annual Report (AR) is filed but has not yet been synced with Colin, this flag is set to true. This could potentially cause issues when attempting to file subsequent ARs that haven’t been synced yet.
  • To ensure everything remains in sync, this API call should also check the GCP database for any pending filings that have not been synced with Colin. This will prevent a filing from being submitted twice.
{
    "tasks": [
        {
            "task": {
                "todo": {
                    "business": {
                        "adminFreeze": "False",
                        "corpState": "ACT",
                        "corpStateClass": "ACT",
                        "email": null,
                        "foundingDate": "2004-11-11T02:29:36-00:00",
                        "goodStanding": false,
                        "hasFutureEffectiveFilings": false,
                        "homeCompanyName": null,
                        "homeJurisdictionNumber": null,
                        "homeRecognitionDate": null,
                        "identifier": "0708394",
                        "jurisdiction": "BC",
                        "lastAgmDate": null,
                        "lastArDate": "2010-11-10",
                        "lastLedgerTimestamp": "2024-09-25T21:25:19-00:00",
                        "legalName": "B.C. BUGGY LTD.",
                        "legalType": "BC",
                        "nextARYear": 2011,
                        "status": "Active",
                        "taxId": "123"
                    },
                    "header": {
                        "ARFilingYear": 2011,
                        "name": "annualReport",
                        "status": "NEW"
                    }
                }
            }
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Business AR BAR colin-api Names Team Ticket for Names Team to tackle
Projects
None yet
Development

No branches or pull requests

2 participants