wafeq_bills_line_items_create
Creates a new line item on an existing bill in Wafeq. Provide account, description, quantity, unit amount, and optional tax rate, discount, or amortization to record bill details accurately.
Instructions
๐ก WRITE ยท creates data ยท Bill Line Items ยท POST /bills/{bill_id}/line-items/
Create bill line item
Endpoint for creating a new bill line item.
Not idempotent โ calling twice creates two records. Pass idempotency_key (or let the server generate one) to make a retry safe.
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": {
"bill_id": "<bill_id>",
"body": "<body>"
},
"name": "wafeq_bills_line_items_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Augment ``custom_fields`` in the output with computed CALCULATED field values. Apply to any line-item serializer whose model has ``get_resolved_custom_fields``. | |
| bill_id | Yes | ||
| idempotency_key | No | Optional idempotency key (sent as the X-Wafeq-Idempotency-Key header). A UUID v4 is generated automatically when omitted, so an automatic network retry can never duplicate this operation. Pass your own stable value to make a deliberate re-invocation safe as well. |