patch https://cardda.herokuapp.com/v1/erp/payouts/purchase_orders//items/
Updates a purchase order item's name, sequence, or percentage. The item amount is automatically recalculated when the percentage changes.
Important Notes
- Changing the percentage will trigger automatic recalculation of the item amount
- The total of all item percentages must still sum to 100% after the update
- Items can only be updated if the purchase order is not in completed status
- For ByMilestone type purchase orders, the name field is required
- The sequence must remain unique within the purchase order
Authorization
- User must be a member of the company that owns the purchase order
- User must have appropriate permissions (admin, owner, or member)
Use Cases
- Adjust percentages: Rebalance payment stages
- Update item names: Clarify milestone descriptions
- Reorder items: Change sequence numbers
