If you want to setup a rule for your invoice automation then you have to go into Invoices Rules list view. There are two ways to access Invoices Rules:
1- You can access it from Invoices Dashboard
![](https://cdn.sanity.io/images/sdo1bitj/production/fcca371ab053ba57f7698c4dcf1ae82b08f72acf-1366x241.png)
2- Another way to access it from Invoices in top menu
![](https://cdn.sanity.io/images/sdo1bitj/production/d60b61fc60e8bb6c497c4895c1d885f963d971ad-256x390.png)
Invoices Rules List View
Rules list view will list down all the rules created and will also give option to enable or disable it using toggle.
![](https://cdn.sanity.io/images/sdo1bitj/production/53c8f839e7fdca9e8a34fbb550306c416474e139-1366x635.png)
You can create a new rule by clicking Add Rule button
![](https://cdn.sanity.io/images/sdo1bitj/production/93efdeab8c04b5ab6f293bd97e801fe85a025f31-148x280.png)
Add New Rule overlay will give user a bundle of options to create rule. You can set rule for the following events
Booking Canceled
Booking Confirmed
Inquiry Created
Time-based Event
![](https://cdn.sanity.io/images/sdo1bitj/production/f77c1c38af958d1bca0ead81a4c878a14b92de3d-1366x635.png)
Once a rule will be triggered, invoice will be created and user will have option to perform further following actions against the invoice.
![](https://cdn.sanity.io/images/sdo1bitj/production/19f305a0dc43481d6bbd031874478a91a100b03d-581x326.png)
Invoice rules can be edited or deleted using menu options as mentioned below
![](https://cdn.sanity.io/images/sdo1bitj/production/f5e2fbcf19ee9fc53061bb8d5161eebc85991741-386x157.png)