Invoices
Creating Invoices
⚠️ Please Note: Only Hello World is deployed at this time. Invoices via API call is under active development now and will be ready soon. You can still create Invoices via the UI interactively, but you cannot yet select Payment Card as a payment method.
To create an invoice, you must first obtain a reference to a customer record.
Creating an Invoice
To create the invoice, simply call:
POST https://api.accountedfor.com.au/machine/invoice/create
{
customer_uuid: "ca7952dd-872c-46a5-8e0b-5de17459ff8f",
line_items: [
{
description: "Description of Goods or Serivces",
unit_price: 123.45
tax_rate: 10.00,
},
],
notes: invoiceNotes,
}
Which will respond with:
{
status: "success",
principal: {
legal_entity_name: "Sandy Shores (Proposed Name)",
},
result: {
uuid: "11617456-87e2-45bc-b342-f391a2968df0",
},
}
The result UUID is the customer ID for the customer record you have created on behalf of Sandy Shores (Proposed Name).
At this point, you can view the invoice in any browser by visiting:
https://platform.accountedfor.com.au/customer/invoice/11617456-87e2-45bc-b342-f391a2968df0