create_invoice
Generate ZATCA-compliant invoices in Stream by specifying customer details, line items, and payment options. Send invoices directly to customers and schedule delivery dates.
Instructions
Create a ZATCA-compliant invoice in Stream.
items is a list of line-item dicts, each with:
product_id (str, required)
quantity (int > 0, required)
scheduled_on is the ISO-8601 date-time for when the invoice is due/sent. Set notify_consumer to True to send the invoice to the customer.
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_id": "<customer_id>",
"items": "<items>"
},
"name": "create_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer_id | Yes | ||
| items | Yes | ||
| scheduled_on | No | ||
| description | No | ||
| currency | No | SAR | |
| notify_consumer | No | ||
| coupons | No | ||
| accept_mada | No | ||
| accept_visa | No | ||
| accept_mastercard | No | ||
| accept_amex | No | ||
| accept_bank_transfer | No | ||
| accept_installment | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||