Expected Outcomes
A list with some of the outcomes that an API interaction can produce, for both successful and unsuccessful requests.
- General Overview
- Announcements
- Authentication
- Webhooks
- Endpoints Summary
- Expected Outcomes
- Onboarding Requirements
- Known Limitations
- Teams
- Successful Requests
- Validation Errors on Submission
- Company Registration Status Requests
- Company Registration Workflow
- General API Error Messages
Successful Requests
Whenever you make a GET request and the errors key is empty, and the response key is present and not empty, and the response code is 200, the respective request should be considered successful.
{
"requestId": 12239,
"status": "finished",
"response": {
...
},
"warnings": null,
"errors": null
}
Whenever you make a POST request and the errors key is empty, and the response.requestId key is present and not empty, and the response code is 201, the respective request should be considered successful.
{
"requestId": 12239,
"status": "new",
"warnings": null,
"errors": null
}
Validation Errors on Submission
There are two kinds of errors, and you should handle both.
When you submit (POST), we check the payload before anything is sent to ASIC. If it fails, the response code is 400, requestId is null and nothing is lodged. Here errors is an object keyed by field name, each with a list of messages.
{
"response": {
"requestId": null,
"status": "validation failed"
},
"errors": {
"generalInformation.companySubClass": [
"For an APUB LMSH company, generalInformation -> companySubClass must be ULSN, ULSS or ULST."
]
}
}
After it is accepted, ASIC runs its own checks. Any ASIC errors appear on the status request below, where errors is a list of objects: details holds ASIC's code and message, and target the value ASIC objected to, when it names one.
Company Registration Status Requests
A successful GET request sent to /api/v2/company-registrations/{requestId}/status, will return code 200 with one of the following responses.
{
"requestId": 12239,
"status": "transmission ok",
"warnings": null,
"errors": null
}
{
"requestId": 12239,
"status": "validation ok",
"warnings": null,
"errors": null
}
{
"requestId": 12239,
"status": "validation failed",
"response": "null",
"warnings": null,
"errors": [
{
"details": "V418 Country name not verified. Please check [ZSH/8r]",
"target": "NEWZEALAND"
}
]
}
{
"requestId": 12239,
"status": "manual review",
"documentNumber": "2EXN69008",
"response": null,
"warnings": [
{
"details": "Reference Number: 2EXN69008\n\nRe: Application for Company Registration:\nASIC BANK PTY LTD\nReference is made to your application for company...",
"target": null
}
],
"errors": null
}
{
"requestId": 12239,
"status": "rejected",
"documentNumber": "2EXN69008",
"response": null,
"warnings": null,
"errors": [
{
"details": "Reference Number: 2EXN69008\n\nRe: Application for Company Registration:\nASIC BANK PTY LTD\nReference is made to your application for company...",
"target": null
}
]
}
{
"requestId": 12239,
"status": "finished",
"documentNumber": "2EXN69008",
"response": {
"companyName": "MY DEMO COMPANY PTY LTD",
"acn": "612302303",
"companyType": "APTY",
"companyClass": "LMSH",
"companySubClass": "PROP",
"jurisdiction": "NSW",
"dateOfRegistration": "2021-06-30"
},
"warnings": null,
"errors": null
}
Company Registration Workflow
After a successful submission you get a requestId with status new. Rather than polling, subscribe to the company_registration.status_changed webhook, which fires when the request reaches manual review, finished, rejected or validation failed. If you poll the status request instead, every few minutes is enough.
new,transmission ok,validation ok: in progress, keep waiting.manual review: not final. ASIC is reviewing the application by hand, which usually takes a few business days, and it then moves tofinishedorrejected.finished: the company is registered. The ACN is in the response, and the certificate and documents can be downloaded.validation failedandrejected: final. Nothing more will happen on this request.
A request cannot be updated or resubmitted. If it ends in validation failed or rejected, correct the data using the errors returned and submit a new company registration request.
General API Error Messages
Trying to access an endpoint without proper credentials, will return error code 401 with the following response.
{
"errors": [
"Unauthorised."
]
}
Trying to access an endpoint without proper scopes or access resources that do not belong to you, will return error code 403 with the following response.
{
"errors": [
"Forbidden. No access to this resource."
]
}
Trying to access an endpoint using the wrong method, will return error code 403 with the following response.
{
"errors": [
"Forbidden. Method not allowed."
]
}
Trying to access an invalid endpoint, will return error code 404 with the following response.
{
"errors": [
"Endpoint not found."
]
}