Customers
Creating Customer Records
⚠️ Please Note: Only Hello World is deployed at this time. Customers via API call is under active development now and will be ready soon. You can still create Customers via the UI interactively.
Any legal entity can create a Customer Record for its own customer list.
A legal entity can also create a Customer Record on behalf of another legal entity (the Principal legal entity) with the Principal's authorisation
Creating Customer Records for a Legal entity
To create a customer record using a machine credential on behalf of its owner's Legal Entity, simply call:
POST https://api.accountedfor.com.au/machine/customer/create
{
email: "customer@emailprovider.com",
phone: "+614271991782",
first_name: "Sandra",
last_name: "Shore",
}
Which will respond with:
{
status: "success",
principal: {
legal_entity_name: "Sandy Shores (Proposed Name)",
},
result: {
uuid: "ca7952dd-872c-46a5-8e0b-5de17459ff8f",
},
}
The result UUID is the customer ID for the customer record you have created on behalf of Sandy Shores (Proposed Name).
You can use this to create an Invoice by visiting the Create an Invoice documentation page.