@datafire/ato_gov_au
v6.0.0
Published
DataFire integration for Business Registries
Downloads
1
Readme
@datafire/ato_gov_au
Client library for Business Registries
Installation and Usage
npm install --save @datafire/ato_gov_au
let ato_gov_au = require('@datafire/ato_gov_au').create();
.then(data => {
console.log(data);
});
Description
Introduction
The Business Registries API is built on HTTP. The API is RESTful. It has predictable resource URIs.
The API is documented in OpenAPI format. In addition to the standard OpenAPI syntax we use a few vendor extensions.
Overview
The following sections describe the resources that make up the Business Registries REST API.
Current Version
By default, all requests to https://api.abr.ato.gov.au receive the v1
version of the REST API. We encourage you to explicitly request this version via the Accept
header.
Accept: application/vnd.abr-ato.v1+json
Schema
All API access is over HTTPS, and accessed from https://api.abr.ato.gov.au. All data is sent and received as JSON. Blank fields are included.
All dates use the ISO 8601 format:
YYYY-MM-DD
For example: 2017-07-01
(the 1st of July 2017)
All timestamps use the ISO 8601 format:
YYYY-MM-DDTHH:MM:SSZ
For example: 2017-07-01T11:05:06+10:00
Timezones
Some requests allow for specifying timestamps or generate timestamps with time zone information. We apply the following rules, in order of priority, to determine timezone information for API calls.
Explicitly provide an ISO 8601 timestamp with timezone information
For API calls that allow for a timestamp to be specified, we use that exact timestamp.
For example: 2017-07-01T11:05:06+10:00
Pagination
Information about pagination is provided in the Link header.
For example:
Link: <https://api.abr.ato.gov.au/individuals?page=2>; rel="next",
<https://api.abr.ato.gov.au/individuals?page=34>; rel="last"
rel="next"
states that the next page is page=2
. This makes sense, since by default, all paginated queries start at page 1
. rel="last"
provides some more information, stating that the last page of results is on page 34
. Accordingly, we have 33 more pages of information that we can consume.
Parameters
Many API methods take optional parameters:
GET /individuals/1234/addresses/?addressType='Mailing'
In this example, the '1234' value is provided for the :partyId
parameter in the path while :addressType
is passed in the query string.
For POST, PATCH, PUT, and DELETE requests, parameters not included in the URL should be encoded as JSON with a Content-Type of 'application/json'.
Metadata
The API provides metadata services that you can use to discover information about the classifcation schemes and values used by the Registry.
For example:
GET /classifications/roles
Sample response:
[
{
"id": "123e4567-e89b-12d3-a456-426655440001",
"role": "Director",
"roleDescription": "An individual responsible for managing a company's ...",
"relationship": "Directorship",
"reciprocalRole": "Company",
"reciprocalRoleDescription": "An incorporated legal entity."
},
{
...
}
]
Root Endpoint
You can issue a GET request to the root endpoint (also known as the service root) to get all the endpoint categories that the REST API supports:
curl https://api.abr.ato.gov.au
Authentication
The Business Registries API supports API Key authentication.
When you sign up for an account, you are given your first API key. You can generate additional API keys, and delete API keys (as you may need to rotate your keys in the future). You authenticate to the Business Registries API by providing your secret key in the request header.
Note: Some requests will return 404 Not Found
, instead of 403 Permission Denied
. This is to prevent the
accidental leakage of information to unauthorised users.
Actions
business_names.get
Retrieve a list of business names
ato_gov_au.business_names.get({
"apiKey": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key.
- apiKey required
Output
- output
array
- items business-name
classifications.address_types.get
Retrieve a list of address types
ato_gov_au.classifications.address_types.get({
"apiKey": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key.
- apiKey required
Output
- output
array
- items address-type
classifications.business_name_lifecycle_states.get
Retrieve a list of business name lifecycle states
ato_gov_au.classifications.business_name_lifecycle_states.get({
"apiKey": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key.
- apiKey required
Output
- output
array
classifications.electronic_address_types.get
Retrieve a list of electronic address types
ato_gov_au.classifications.electronic_address_types.get({
"apiKey": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key.
- apiKey required
Output
- output
array
- items electronic-address-type
classifications.genders.get
Retrieve a list of genders
ato_gov_au.classifications.genders.get({
"apiKey": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key.
- apiKey required
Output
- output
array
- items gender
classifications.legal_entity_types.get
Retrieve a list of legal entity types
ato_gov_au.classifications.legal_entity_types.get({
"apiKey": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key.
- apiKey required
Output
- output
array
- items legal-entity-type
classifications.license_lifecycle_states.get
Retrieve a list of license lifecycle states
ato_gov_au.classifications.license_lifecycle_states.get({
"apiKey": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key.
- apiKey required
Output
- output
array
- items license-lifecycle-state
classifications.license_types.get
Retrieve a list of license types
ato_gov_au.classifications.license_types.get({
"apiKey": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key.
- apiKey required
Output
- output
array
- items license-type
classifications.name_directions.get
Retrieve a list of name directions
ato_gov_au.classifications.name_directions.get({
"apiKey": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key.
- apiKey required
Output
- output
array
- items name-direction
classifications.name_prefixes.get
Retrieve a list of name prefixes
ato_gov_au.classifications.name_prefixes.get({
"apiKey": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key.
- apiKey required
Output
- output
array
- items name-prefix
classifications.name_types.get
Retrieve a list of name types
ato_gov_au.classifications.name_types.get({
"apiKey": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key.
- apiKey required
Output
- output
array
- items name-type
classifications.registered_identifier_types.get
Retrieve a list of registered identifier types
ato_gov_au.classifications.registered_identifier_types.get({
"apiKey": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key.
- apiKey required
Output
- output
array
classifications.roles.get
Retrieve a list of roles
ato_gov_au.classifications.roles.get({
"apiKey": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key.
- apiKey required
Output
- output
array
- items role
individuals.get
Retrieve a list of individuals
ato_gov_au.individuals.get({
"apiKey": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - dateOfBirth
string
: The individual's date of birth, for example,1979-01-13
(in ISO 8601 format). - placeOfBirth
string
: The individual's place of birth, for example,Tamworth
.
- apiKey required
Output
- output
array
- items individual
individuals.post
Create an individual
ato_gov_au.individuals.post({
"apiKey": "",
"body": {
"dateOfBirth": "",
"placeOfBirth": ""
}
}, context)
Input
- input
object
- apiKey required
string
: The API key. - body required individual
- apiKey required
Output
- output individual
individuals.partyId.delete
Delete an individual with the specified identifier
ato_gov_au.individuals.partyId.delete({
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
- apiKey required
Output
Output schema unknown
individuals.partyId.get
Retrieve an individual with the specified identifier
ato_gov_au.individuals.partyId.get({
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
- apiKey required
Output
- output individual
individuals.partyId.put
Update an individual
ato_gov_au.individuals.partyId.put({
"body": {
"dateOfBirth": "",
"placeOfBirth": ""
},
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- body required individual
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
Output
- output individual
individuals.partyId.addresses.get
Retrieve a list of addresses
ato_gov_au.individuals.partyId.addresses.get({
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
- apiKey required
Output
- output
array
- items address
individuals.partyId.addresses.post
Create an address
ato_gov_au.individuals.partyId.addresses.post({
"body": {},
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- body required address
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
Output
- output address
individuals.partyId.addresses.addressId.delete
Delete an address
ato_gov_au.individuals.partyId.addresses.addressId.delete({
"apiKey": "",
"partyId": "",
"addressId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - addressId required
string
: The address identifier.
- apiKey required
Output
Output schema unknown
individuals.partyId.addresses.addressId.get
Retrieve an address
ato_gov_au.individuals.partyId.addresses.addressId.get({
"apiKey": "",
"partyId": "",
"addressId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - addressId required
string
: The address identifier.
- apiKey required
Output
- output address
individuals.partyId.addresses.addressId.put
Update an address
ato_gov_au.individuals.partyId.addresses.addressId.put({
"body": {},
"apiKey": "",
"partyId": "",
"addressId": ""
}, context)
Input
- input
object
- body required address
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - addressId required
string
: The address identifier.
Output
- output address
individuals.partyId.business_names.get
Retrieve a list of business names
ato_gov_au.individuals.partyId.business_names.get({
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
- apiKey required
Output
- output
array
- items business-name
individuals.partyId.business_names.post
Create a business name
ato_gov_au.individuals.partyId.business_names.post({
"body": {},
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- body required business-name
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
Output
- output business-name
individuals.partyId.business_names.productId.delete
Delete a business name
ato_gov_au.individuals.partyId.business_names.productId.delete({
"apiKey": "",
"partyId": "",
"productId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - productId required
string
: The product identifier.
- apiKey required
Output
Output schema unknown
individuals.partyId.business_names.productId.get
Retrieve a business name
ato_gov_au.individuals.partyId.business_names.productId.get({
"apiKey": "",
"partyId": "",
"productId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - productId required
string
: The product identifier.
- apiKey required
Output
- output business-name
individuals.partyId.business_names.productId.put
Update a business name
ato_gov_au.individuals.partyId.business_names.productId.put({
"body": {},
"apiKey": "",
"partyId": "",
"productId": ""
}, context)
Input
- input
object
- body required business-name
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - productId required
string
: The product identifier.
Output
- output business-name
individuals.partyId.electronic_addresses.get
Retrieve a list of electronic addresses
ato_gov_au.individuals.partyId.electronic_addresses.get({
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
- apiKey required
Output
- output
array
- items electronic-address
individuals.partyId.electronic_addresses.post
Create an electronic address
ato_gov_au.individuals.partyId.electronic_addresses.post({
"body": {},
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- body required electronic-address
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
Output
- output electronic-address
individuals.partyId.electronic_addresses.addressId.delete
Delete an electronic address
ato_gov_au.individuals.partyId.electronic_addresses.addressId.delete({
"apiKey": "",
"partyId": "",
"addressId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - addressId required
string
: The address identifier.
- apiKey required
Output
Output schema unknown
individuals.partyId.electronic_addresses.addressId.get
Retrieve an electronic address
ato_gov_au.individuals.partyId.electronic_addresses.addressId.get({
"apiKey": "",
"partyId": "",
"addressId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - addressId required
string
: The address identifier.
- apiKey required
Output
- output electronic-address
individuals.partyId.electronic_addresses.addressId.put
Update an electronic address
ato_gov_au.individuals.partyId.electronic_addresses.addressId.put({
"body": {},
"apiKey": "",
"partyId": "",
"addressId": ""
}, context)
Input
- input
object
- body required electronic-address
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - addressId required
string
: The address identifier.
Output
- output electronic-address
individuals.partyId.licenses.get
Retrieve a list of licenses
ato_gov_au.individuals.partyId.licenses.get({
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
- apiKey required
Output
- output
array
- items license
individuals.partyId.licenses.post
Create a license
ato_gov_au.individuals.partyId.licenses.post({
"body": {},
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- body required license
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
Output
- output license
individuals.partyId.licenses.productId.delete
Delete a license
ato_gov_au.individuals.partyId.licenses.productId.delete({
"apiKey": "",
"partyId": "",
"productId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - productId required
string
: The product identifier.
- apiKey required
Output
Output schema unknown
individuals.partyId.licenses.productId.get
Retrieve a license
ato_gov_au.individuals.partyId.licenses.productId.get({
"apiKey": "",
"partyId": "",
"productId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - productId required
string
: The product identifier.
- apiKey required
Output
- output license
individuals.partyId.licenses.productId.put
Update a license
ato_gov_au.individuals.partyId.licenses.productId.put({
"body": {},
"apiKey": "",
"partyId": "",
"productId": ""
}, context)
Input
- input
object
- body required license
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - productId required
string
: The product identifier.
Output
- output license
individuals.partyId.roles.get
Retrieve a list of roles
ato_gov_au.individuals.partyId.roles.get({
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
- apiKey required
Output
- output
array
- items party-role
individuals.partyId.roles.post
Create a role
ato_gov_au.individuals.partyId.roles.post({
"body": {
"relatedPartyId": null,
"relationshipType": ""
},
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- body required party-role
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
Output
- output party-role
individuals.partyId.roles.roleId.delete
Delete a role
ato_gov_au.individuals.partyId.roles.roleId.delete({
"apiKey": "",
"partyId": "",
"roleId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - roleId required
string
: The role identifier.
- apiKey required
Output
Output schema unknown
individuals.partyId.roles.roleId.get
Retrieve a role
ato_gov_au.individuals.partyId.roles.roleId.get({
"apiKey": "",
"partyId": "",
"roleId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - roleId required
string
: The role identifier.
- apiKey required
Output
- output party-role
individuals.partyId.roles.roleId.put
Update a role
ato_gov_au.individuals.partyId.roles.roleId.put({
"body": {
"relatedPartyId": null,
"relationshipType": ""
},
"apiKey": "",
"partyId": "",
"roleId": ""
}, context)
Input
- input
object
- body required party-role
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - roleId required
string
: The role identifier.
Output
- output party-role
licenses.get
Retrieve a list of licenses
ato_gov_au.licenses.get({
"apiKey": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key.
- apiKey required
Output
- output
array
- items license
organisations.get
Retrieve a list of organisations
ato_gov_au.organisations.get({
"apiKey": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - registeredIdentifier
string
: The registered identifier, for example,ACN
orABN
. - identifier
string
: The identifier, for example,123456789
.
- apiKey required
Output
- output
array
- items organisation
organisations.post
Create an organisation
ato_gov_au.organisations.post({
"apiKey": "",
"body": {
"legalEntityType": "",
"establishmentDate": ""
}
}, context)
Input
- input
object
- apiKey required
string
: The API key. - body required organisation
- apiKey required
Output
- output organisation
organisations.partyId.delete
Delete an organisation with the specified identifier
ato_gov_au.organisations.partyId.delete({
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
- apiKey required
Output
Output schema unknown
organisations.partyId.get
Retrieve an organisation with the specified identifier
ato_gov_au.organisations.partyId.get({
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
- apiKey required
Output
- output organisation
organisations.partyId.put
Update an organisation
ato_gov_au.organisations.partyId.put({
"body": {
"legalEntityType": "",
"establishmentDate": ""
},
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- body required organisation
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
Output
- output organisation
organisations.partyId.addresses.get
Retrieve a list of addresses
ato_gov_au.organisations.partyId.addresses.get({
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
- apiKey required
Output
- output
array
- items address
organisations.partyId.addresses.post
Create an address
ato_gov_au.organisations.partyId.addresses.post({
"body": {},
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- body required address
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
Output
- output address
organisations.partyId.addresses.addressId.delete
Delete an address
ato_gov_au.organisations.partyId.addresses.addressId.delete({
"apiKey": "",
"partyId": "",
"addressId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - addressId required
string
: The address identifier.
- apiKey required
Output
Output schema unknown
organisations.partyId.addresses.addressId.get
Retrieve an address
ato_gov_au.organisations.partyId.addresses.addressId.get({
"apiKey": "",
"partyId": "",
"addressId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - addressId required
string
: The address identifier.
- apiKey required
Output
- output address
organisations.partyId.addresses.addressId.put
Update an address
ato_gov_au.organisations.partyId.addresses.addressId.put({
"body": {},
"apiKey": "",
"partyId": "",
"addressId": ""
}, context)
Input
- input
object
- body required address
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - addressId required
string
: The address identifier.
Output
- output address
organisations.partyId.business_names.get
Retrieve a list of business names
ato_gov_au.organisations.partyId.business_names.get({
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
- apiKey required
Output
- output
array
- items business-name
organisations.partyId.business_names.post
Create a business name
ato_gov_au.organisations.partyId.business_names.post({
"body": {},
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- body required business-name
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
Output
- output business-name
organisations.partyId.business_names.productId.delete
Delete a business name
ato_gov_au.organisations.partyId.business_names.productId.delete({
"apiKey": "",
"partyId": "",
"productId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - productId required
string
: The product identifier.
- apiKey required
Output
Output schema unknown
organisations.partyId.business_names.productId.get
Retrieve a business name
ato_gov_au.organisations.partyId.business_names.productId.get({
"apiKey": "",
"partyId": "",
"productId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - productId required
string
: The product identifier.
- apiKey required
Output
- output business-name
organisations.partyId.business_names.productId.put
Update a business name
ato_gov_au.organisations.partyId.business_names.productId.put({
"body": {},
"apiKey": "",
"partyId": "",
"productId": ""
}, context)
Input
- input
object
- body required business-name
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - productId required
string
: The product identifier.
Output
- output business-name
organisations.partyId.electronic_addresses.get
Retrieve a list of electronic addresses
ato_gov_au.organisations.partyId.electronic_addresses.get({
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
- apiKey required
Output
- output
array
- items electronic-address
organisations.partyId.electronic_addresses.post
Create an electronic address
ato_gov_au.organisations.partyId.electronic_addresses.post({
"body": {},
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- body required electronic-address
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
Output
- output electronic-address
organisations.partyId.electronic_addresses.addressId.delete
Delete an electronic address
ato_gov_au.organisations.partyId.electronic_addresses.addressId.delete({
"apiKey": "",
"partyId": "",
"addressId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - addressId required
string
: The address identifier.
- apiKey required
Output
Output schema unknown
organisations.partyId.electronic_addresses.addressId.get
Retrieve an electronic address
ato_gov_au.organisations.partyId.electronic_addresses.addressId.get({
"apiKey": "",
"partyId": "",
"addressId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - addressId required
string
: The address identifier.
- apiKey required
Output
- output electronic-address
organisations.partyId.electronic_addresses.addressId.put
Update an electronic address
ato_gov_au.organisations.partyId.electronic_addresses.addressId.put({
"body": {},
"apiKey": "",
"partyId": "",
"addressId": ""
}, context)
Input
- input
object
- body required electronic-address
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - addressId required
string
: The address identifier.
Output
- output electronic-address
organisations.partyId.licenses.get
Retrieve a list of licenses
ato_gov_au.organisations.partyId.licenses.get({
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
- apiKey required
Output
- output
array
- items license
organisations.partyId.licenses.post
Create a license
ato_gov_au.organisations.partyId.licenses.post({
"body": {},
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- body required license
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
Output
- output license
organisations.partyId.licenses.productId.delete
Delete a license
ato_gov_au.organisations.partyId.licenses.productId.delete({
"apiKey": "",
"partyId": "",
"productId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - productId required
string
: The product identifier.
- apiKey required
Output
Output schema unknown
organisations.partyId.licenses.productId.get
Retrieve a license
ato_gov_au.organisations.partyId.licenses.productId.get({
"apiKey": "",
"partyId": "",
"productId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - productId required
string
: The product identifier.
- apiKey required
Output
- output license
organisations.partyId.licenses.productId.put
Update a license
ato_gov_au.organisations.partyId.licenses.productId.put({
"body": {},
"apiKey": "",
"partyId": "",
"productId": ""
}, context)
Input
- input
object
- body required license
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - productId required
string
: The product identifier.
Output
- output license
organisations.partyId.roles.get
Retrieve a list of roles
ato_gov_au.organisations.partyId.roles.get({
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
- apiKey required
Output
- output
array
- items party-role
organisations.partyId.roles.post
Create a role
ato_gov_au.organisations.partyId.roles.post({
"body": {
"relatedPartyId": null,
"relationshipType": ""
},
"apiKey": "",
"partyId": ""
}, context)
Input
- input
object
- body required party-role
- apiKey required
string
: The API key. - partyId required
string
: The party identifier.
Output
- output party-role
organisations.partyId.roles.roleId.delete
Delete a role
ato_gov_au.organisations.partyId.roles.roleId.delete({
"apiKey": "",
"partyId": "",
"roleId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - roleId required
string
: The role identifier.
- apiKey required
Output
Output schema unknown
organisations.partyId.roles.roleId.get
Retrieve a role
ato_gov_au.organisations.partyId.roles.roleId.get({
"apiKey": "",
"partyId": "",
"roleId": ""
}, context)
Input
- input
object
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - roleId required
string
: The role identifier.
- apiKey required
Output
- output party-role
organisations.partyId.roles.roleId.put
Update a role
ato_gov_au.organisations.partyId.roles.roleId.put({
"body": {
"relatedPartyId": null,
"relationshipType": ""
},
"apiKey": "",
"partyId": "",
"roleId": ""
}, context)
Input
- input
object
- body required party-role
- apiKey required
string
: The API key. - partyId required
string
: The party identifier. - roleId required
string
: The role identifier.
Output
- output party-role
Definitions
address
- address
object
: The Address resource.- city
string
: The city. - country
string
: The country. - fromDate
string
: The date and time the resource became active in the format defined by ISO 8601. - id: The resource's unique identifier.
- line1
string
: The address line 1. - line2
string
: The address line 2. - line3
string
: The address line 3. - name
string
: The address name. - postalCode
string
: The postal code. - suburb
string
: The suburb. - toDate
string
: The date and time the resource became inactive in the format defined by ISO 8601.
- city
address-type
- address-type
- description
string
: The scheme value description. - id: The resource's unique identifier.
- name
string
: The scheme value.
- description
addressId
- addressId
business-name
- business-name
object
: The Business Name resource.- fromDate
string
: The date and time the resource became active in the format defined by ISO 8601. - id: The resource's unique identifier.
- lifecycleState
string
(values: Approved, Expired, Issued, Pending Approval, Suspended): The business name's lifecycle state. - name
string
: The business name. - toDate
string
: The date and time the resource became inactive in the format defined by ISO 8601.
- fromDate
business-name-lifecycle-state
- business-name-lifecycle-state
- description
string
: The scheme value description. - id: The resource's unique identifier.
- name
string
: The scheme value.
- description
electronic-address
- electronic-address
object
: The Electronic Address resource.- areaCode
string
: The area code, for example, "02". - countryPrefix
string
: The country prefix, for example, "61". - electronicAddressType
string
(values: Email, Fax, Landline, Mobile, Website): The electronic address type. - email
string
: The email address, for example, "[email protected]". - extension
string
: The extension number, for example, "4453". - fromDate
string
: The date and time the resource became active in the format defined by ISO 8601. - id: The resource's unique identifier.
- number
string
: The number, for example, "62164453". - toDate
string
: The date and time the resource became inactive in the format defined by ISO 8601. - url
string
: The website address, for example, "https://ato.gov.au".
- areaCode
electronic-address-type
- electronic-address-type
- description
string
: The scheme value description. - id: The resource's unique identifier.
- name
string
: The scheme value.
- description
error-details
- error-details
object
- code
string
: The error code. - message
string
: The error message. - target
string
: The error target.
- code
failed-precondition
- failed-precondition
object
- code
string
: The error code. - details
array
- items error-details
- message
string
: The error message. - status
string
: The error status.
- code
gender
- gender
object
: The Gender resource.- gender
string
: The gender. - id: The resource's unique identifier.
- gender
individual
- individual
object
: The Individual resource.- addresses
array
- items individual-address
- dateOfBirth required
string
: The individual's date of birth, for example,1979-01-13
(in ISO 8601 format). - electronicAddresses
array
- items electronic-address
- fromDate
string
: The date and time the resource became active in the format defined by ISO 8601. - gender
string
(values: Female, Male, Not Applicable, Not Known): The individual's gender. - id: The party's unique identifier.
- names
array
- items individual-name
- placeOfBirth required
string
: The individual's place of birth, for example,Tamworth
. - toDate
string
: The date and time the resource became inactive in the format defined by ISO 8601.
- addresses
individual-address
- individual-address
- city
string
: The city. - country
string
: The country. - fromDate
string
: The date and time the resource became active in the format defined by ISO 8601. - id: The resource's unique identifier.
- line1
string
: The address line 1. - line2
string
: The address line 2. - line3
string
: The address line 3. - name
string
: The address name. - postalCode
string
: The postal code. - suburb
string
: The suburb. - toDate
string
: The date and time the resource became inactive in the format defined by ISO 8601. - addressType
string
(values: Mailing, Principal Place of Business, Principal Place of Residence): The address type. - fromDate
string
: The date and time the resource became active in the format defined by ISO 8601. - toDate
string
: The date and time the resource became inactive in the format defined by ISO 8601.
- city
individual-name
- individual-name
object
: The Individual Name resource.- direction
string
(values: left-to-right, right-to-left): The direction used to render the individual's name. - familyName
string
: The individual's family name. - formalSalutation
string
: The individual's formal salutation, for example, "Mr William Smith". - fromDate
string
: The date and time the resource became active in the format defined by ISO 8601. - givenName
string
: The individual's given name. - id: The resource's unique identifier.
- informalSalutation
string
: The individual's informal salutation, for example, "Bill". - middleName
string
: The individual's middle name. - namePrefix
string
(values: Mr, Ms): The individual's name prefix. - nameSuffix
string
: The individual's name suffix, for example, "Jr" or "Sr". - nameType
string
(values: Alias, Principal Name): The name type. - toDate
string
: The date and time the resource became inactive in the format defined by ISO 8601.
- direction
invalid-argument
- invalid-argument
object
- code
string
: The error code. - details
array
- items error-details
- message
string
: The error message. - status
string
: The error status.
- code
legal-entity-type
- legal-entity-type
- description
string
: The scheme value description. - id: The resource's unique identifier.
- name
string
: The scheme value.
- description
license
- license
object
: The License resource.- fromDate
string
: The date and time the resource became active in the format defined by ISO 8601. - id: The resource's unique identifier.
- licenseType
string
(values: Australian Financial Services License, License 2B): The license type. - lifecycleState
string
(values: Approved, Expired, Issued, Pending Approval, Suspended): The business name's lifecycle state. - toDate
string
: The date and time the resource became inactive in the format defined by ISO 8601.
- fromDate
license-lifecycle-state
- license-lifecycle-state
- description
string
: The scheme value description. - id: The resource's unique identifier.
- name
string
: The scheme value.
- description
license-type
- license-type
- description
string
: The scheme value description. - id: The resource's unique identifier.
- name
string
: The scheme value.
- description
name-direction
- name-direction
- description
string
: The scheme value description. - id: The resource's unique identifier.
- name
string
: The scheme value.
- description
name-prefix
- name-prefix
- description
string
: The scheme value description. - id: The resource's unique identifier.
- name
string
: The scheme value.
- description
name-type
- name-type
- description
string
: The scheme value description. - id: The resource's unique identifier.
- name
string
: The scheme value.
- description
not-found
- not-found
object
- code
string
: The error code. - details
array
- items error-details
- message
string
: The error message. - status
string
: The error status.
- code
organisation
- organisation
object
: The Organisation resource.- addresses
array
- items organisation-address
- electronicAddresses
array
- items electronic-address
- establishmentDate required
string
: The organisation's establishment date, for example,1928-03-03
(in ISO 8601 format). - fromDate
string
: The date and time the resource became active in the format defined by ISO 8601. - id: The party's unique identifier.
- legalEntityType required
string
(values: Company, Partnership, Trust, Joint Venture): The organisation's legal entity type. - names
array
- items organisation-name
- registeredIdentifiers
array
- items registered-identifier
- toDate
string
: The date and time the resource became inactive in the format defined by ISO 8601.
- addresses
organisation-address
- organisation-address
- city
string
: The city. - country
string
: The country. - fromDate
string
: The date and time the resource became active in the format defined by ISO 8601. - id: The resource's unique identifier.
- line1
string
: The address line 1. - line2
string
: The address line 2. - line3
string
: The address line 3. - name
string
: The address name. - postalCode
string
: The postal code. - suburb
string
: The suburb. - toDate
string
: The date and time the resource became inactive in the format defined by ISO 8601. - addressType
string
(values: Mailing, Principal Place of Business): The address type. - fromDate
string
: The date and time the resource became active in the format defined by ISO 8601. - toDate
string
: The date and time the resource became inactive in the format defined by ISO 8601.
- city
organisation-name
- organisation-name
object
: The Organisation Name resource.
party-role
- party-role
object
: The Party Role resource.- fromDate
string
: The date and time the resource became active in the format defined by ISO 8601. - id: The resource's unique identifier.
- partyRoleType
string
(values: Director, Employee, Member, Partner, Trustee): The party's role type. - relatedPartyId required: The related party's unique identifier.
- relatedPartyRoleType
string
(values: Association, Company, Employer, Organisation, Partnership, Trust): The related party's role type. - relationshipType required
string
(values: Directorship, Employment, Membership, Partnership, Trusteeship): The relationship type. - toDate
string
: The date and time the resource became inactive in the format defined by ISO 8601.
- fromDate
partyId
- partyId
permission-denied
- permission-denied
object
- code
string
: The error code. - details
array
- items error-details
- message
string
: The error message. - status
string
: The error status.
- code
registered-identifier
- registered-identifier
object
: The Registered Identifier resource.- fromDate
string
: The date and time the resource became active in the format defined by ISO 8601. - id: The resource's unique identifier.
- identifier
string
: The registered identifier. - identifierType
string
(values: ACN, ABN): The registered identifier type. - toDate
string
: The date and time the resource became inactive in the format defined by ISO 8601.
- fromDate
registered-identifier-type
- registered-identifier-type
- description
string
: The scheme value description. - id: The resource's unique identifier.
- name
string
: The scheme value.
- description
resourceId
- resourceId
string
: The resource ID. Defaults to UUID v4
role
- role
object
: The Role Type resource.- id: The resource's unique identifier.
- reciprocalRole
string
: The reciprocal role name. - reciprocalRoleDescription
string
: The reciprocal role description. - relationship
string
: The relationship name. - role
string
: The role name. - roleDescription
string
: The role description.
roleId
- roleId
type
- type
object
: The Type resource.- description
string
: The scheme value description. - id: The resource's unique identifier.
- name
string
: The scheme value.
- description
unauthenticated
- unauthenticated
object
- code
string
: The error code. - details error-details
- message
string
: The error message. - status
string
: The error status.
- code