Create invoice draft
create_invoice_draftCreate a DRAFT invoice in the user's Fatoorati account. It is NOT issued: the user reviews it and issues it with one tap in the Fatoorati app (it gets its number then). VAT is applied automatically from the user's business settings (15% in Saudi Arabia when the business is VAT-registered, otherwise 0%). Prices are unit prices before VAT. Returns the computed totals and a link to review.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"customer": "<customer>",
"items": "<items>"
},
"name": "create_invoice_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional internal note shown with the draft | |
| items | Yes | Invoice lines | |
| customer | Yes | Customer (client) name, Arabic or English |