updateFulfillmentItemCosts
Updates costs for a single fulfillment item.
Business Rules
- The fulfillment item must belong to the given fulfillment.
- Passing
supplierUnitCostupdates the supplier unit cost. - Passing
supplierUnitCost: nullclears the supplier unit cost. - Omitting
supplierUnitCostleaves the supplier unit cost unchanged. - At least one cost field must be provided.
supplierUnitCostmust be non-negative when provided.
Error Scenarios
- **
NOT_FOUND**: the fulfillment or fulfillment item does not exist. - **
BAD_REQUEST**: no cost fields are provided, or a cost is negative. - **
UNAUTHORIZED**: missing required permissions or invalid company access.
Permissions Required
orders:update_fulfillment_costspermission
updateFulfillmentItemCosts(
input: UpdateFulfillmentItemCostsInput!
): FulfillmentItem!
Arguments
updateFulfillmentItemCosts.input ● UpdateFulfillmentItemCostsInput! non-null input common
Parameters for UpdateFulfillmentItemCosts
Type
FulfillmentItem object orders
This type represents an item in an order fulfillment. Each item is associated with a product and a quantity