Add a tranche or allocatable segment to a contract
Adds a leg to a contract. Use legs when a contract needs split quantity, different shipment windows, different delivery terms, or leg-level overrides.Documentation Index
Fetch the complete documentation index at: https://docs.commodityai.io/llms.txt
Use this file to discover all available pages before exploring further.
| Header | Required | Notes |
|---|---|---|
Idempotency-Key | Yes | Unique key for safely retrying this write. Use a stable value from your source system, such as erp-contract-10024-leg-c. |
A or B.| Status | Code | Meaning |
|---|---|---|
400 | validation_error | Quantity, label, or override fields are invalid. |
404 | not_found | The contract or a referenced override record was not found for the company. |
409 | conflict | The leg label already exists or the contract lifecycle does not allow adding a leg. |