wafeq_item_units_of_measure_create
Create a unit of measure for an item, specifying conversion factor, price, cost, and default sales/purchase flags. Use idempotency key to make retries safe and prevent duplicate records.
Instructions
๐ก WRITE ยท creates data ยท Item Unit Of Measures ยท POST /item-units-of-measure/
Create item unit of measure
Endpoint for creating a new item unit of measure.
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 | |
| 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. |