productUpdateCosts
DEPRECATED
Legacy supplier-tier costs will be replaced by product cost estimates.
Update Product Supplier Costs
Updates existing supplier cost tiers for a product, 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 company
- 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 supplier
- 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! @deprecated
Arguments
productUpdateCosts.input ● UpdateProductCostsInput! non-null input common
Parameters for UpdateProductCosts
Type
AsynchronousActionResponse object common
Asynchronous action response type