wafeq_simplified_invoices_line_items_create
Add a line item to a simplified invoice using its ID and item details. Pass account, quantity, unit amount, and description to create the record.
Instructions
๐ก WRITE ยท creates data ยท Simplified Invoice Line Items ยท POST /simplified-invoices/{invoice_id}/line-items/
Create simplified invoice line item
Endpoint for creating a new simplified invoice line item.
Not idempotent โ calling twice creates two records. Pass idempotency_key (or let the server generate one) to make a retry safe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | A ModelSerializer that takes additional arguments for "fields", "omit" and "expand" in order to control which fields are displayed, and whether to replace simple values with complex, nested serializations | |
| invoice_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. |