A Business represents a company registered with the New Zealand Companies Office. It is associated with a single Account.
Attributes
Onboarding Statuses
Status | Description | Allowed Reasons |
---|---|---|
applied | Identifies businesses that have registered to be activated for the Centrapay service. | |
provisioning | Identifies businesses that are in the process of being activated for the Centrapay service. | |
active | Identifies businesses that have been activated for Centrapay services successfully (i.e. they have successfully created a Payment Request). | |
deactivated | Identifies businesses that have been de-registered for the Centrapay service. | data-quality-issues,change-of-ownership, centrapay-discontinued, duplicate, blocked |
on-hold | Identifies businesses that have been placed on hold. | seasonal-business-closure, no-response |
Onboarding Status Reasons
Reason | Description |
---|---|
duplicate | The business already exists in the Centrapay system. |
data-quality-issues | Data quality issues are preventing the business from onboarding. |
no-response | No response has been received from the business. |
change-of-ownership | The business has changed ownership. |
centrapay-discontinued | The business is no longer using Centrapay. |
seasonal-business-closure | The business has closed temporarily. |
Attributes
-
value
-
type
/api/businesses
This endpoint allows you to create a new Business. If accountId
is not provided when creating a Business, then a new org account will be created and associated to the Business.
Attributes
-
nzbn
-
accountId
-
test
-
taxNumber
Errors
-
INVALID_ACCOUNT
-
INVALID_NZBN
-
BUSINESS_ALREADY_EXISTS
/api/businesses/{businessId}
This endpoint allows you to update a Business.
Attributes
-
tradingName
-
taxNumber
-
farmlandsBusinessNumber
/api/accounts/{accountId}/business
This endpoint allows you to retrieve a Business by account id.
/api/nzbn-search
This endpoint returns a list of companies that match the queried param on company name, nzbn number or company number. Results are paginated and ordered by relevance.
/api/nzbn/{nzbn}
This endpoint allows you to retrieve a Business by account id.
/api/businesses/{businessId}/set-onboarding-status
This endpoint returns allows you to set the onboarding status of a Business.
Attributes
-
onboardingStatus
crn -
onboardingStatusReason
Errors
-
BUSINESS_ALREADY_EXISTS