---
agentTools:
  projectIndex: https://developers.commerce.busha.co/llms.txt
---

# Invoices

A merchant can create an invoice and send its url to a customer's email for payment. A new charge will be created on the invoice object once it has been viewed by the customer.

An invoice can only be deleted by the admin if and only if the customer has not viewed it.

Merchants can filter their list of invoices by the following status, `OPEN`,  `DELETED`, `VIEW` or `PAID`

### The invoice object

#### Attributes

***

id `string`
Unique identifier for the invoice

***

business\_id `string`
Unique identifier for the business

***

name `string`
Name for the invoice

***

reference `string`
Unique reference for the invoice

***

description `string`
Invoice description

***

customer\_email `string`
recipient invoice email

***

customer\_name `string`
recipient invoice name

***

local\_amount `float64`
amount in local currency

***

local\_currency `string`
currency of invoice payment

***

status `string`
invoice status

***

created\_at `timestamp`
time invoice was created i.e 2023-02-24T14:06:53.144733+01:00

***

updated\_at `timestamp`
time invoice was last updated i.e 2023-02-24T14:06:53.144733+01:00

***

due\_date `timestamp`
due date of invoice if set i.e 2023-02-24T14:06:53.144733+01:00

***