Problem
The ServiceTitan API does not directly create bills. However, you can use Purchase Orders to generate bills automatically.
Solution
Set up automatic bill creation for Purchase Orders
Go to Settings
in the top toolbar.In the side panel, go to Inventory > Configuration.
On the Purchasing tab, select Automatically create bill when PO is received.
When you're finished, click Save.
Use the API to create a Purchase Order
Access the ServiceTitan API.
Go to the PurchaseOrders_Create endpoint.
Use this endpoint: https://developer.servicetitan.io/api-details/#api=tenant-inventory-v2&operation=PurchaseOrders_Create
Receive the Purchase Order
Mark the Purchase Order as received in ServiceTitan.
The system will automatically create a bill based on the PO.
By following these steps, you can use the ServiceTitan API to create bills indirectly through Purchase Orders.