Customers
Turning a business into an organisation customer, in two steps.
Check the business, then accept an owner. The first step asks the registry about an ABN and comes back with the business's details and its beneficial owners; the second names one of those owners and creates the organisation customer with that person as its first delegate.
The token carries everything between the steps. Send it back on the second call, it holds what the check established, and it is also what authorises both calls. There is nothing to read here: the token is the handle, and losing it means starting again.
The check can come back saying the business is already a customer. Nothing to create then, link the person to the existing customer through /delegates instead.
The registry's words are the registry's. status, dateRegistered and businessType are strings the provider gave us, and the date is not reliably formatted between providers. Show them to a person; do not branch on them.
/customers/{customerId}Get customer/customersList customers/customersCreate customers/customers/{customerId}Update customer/organisation-prospectsCreate organisation prospects/delegates/{delegateId}Get delegate/delegatesList delegates/delegatesCreate delegates/delegates/{delegateId}Update delegate