productUpdateCosts
Update Product Costs
Updates existing cost entries for a product. This mutation allows partial updates to cost information including unit cost, order quantity, lead time, and effective dates.
Authentication
Requires authentication and the products:update_costs permission.
Business Rules
- Product must exist and belong to the authenticated user's brand
- All cost IDs must exist for the specified product
- Unit cost must be positive when provided
- Order quantity and lead time must be non-negative when provided
- Cannot create duplicate order quantities or unit costs in the same request
- Cannot set order quantity that already exists for the same product and costable entity
- Processing happens asynchronously in the background
Possible Errors
- **Product not found**: The specified product doesn't exist
- **Cost not found**: One or more cost IDs don't exist for the product
- **Invalid cost data**: Negative costs, duplicate values, or invalid quantities
- **Unauthorized**: User lacks the required permission
productUpdateCosts(
input: UpdateProductCostsInput!
): AsynchronousActionResponse!
Arguments
productUpdateCosts.input ● UpdateProductCostsInput! non-null input
Parameters for UpdateProductCosts
Type
AsynchronousActionResponse object
Asynchronous action response type