wafeq_debit_notes_line_items_create
Create a line item on a debit note by providing account, description, quantity, and unit amount. Use an idempotency key to prevent duplicate entries when retrying the request.
Instructions
๐ก WRITE ยท creates data ยท Debit Note Line Items ยท POST /debit-notes/{debit_note_id}/line-items/
Create debit note line item
Endpoint for creating a new debit note 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 | Augment ``custom_fields`` in the output with computed CALCULATED field values. Apply to any line-item serializer whose model has ``get_resolved_custom_fields``. | |
| debit_note_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. |