wafeq_expenses_create
Create a new expense in Wafeq by providing account, amount, currency, date, description, and paid-through account. Pass an idempotency key to prevent duplicate records on retry.
Instructions
🟡 WRITE · creates data · Expenses · POST /expenses/
Create expense
Endpoint for creating a new expense.
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 | An entity that can have attachments. | |
| 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. |