Skip to main content

updateFulfillmentCosts

Updates costs for a fulfillment.

Business Rules

  • Passing supplierShippingCost updates the supplier shipping cost.
  • Passing supplierShippingCost: null clears the supplier shipping cost.
  • Omitting supplierShippingCost leaves the supplier shipping cost unchanged.
  • Passing supplierOtherFees updates the supplier other fees amount.
  • Passing supplierOtherFees: null clears the supplier other fees amount.
  • Omitting supplierOtherFees leaves the supplier other fees amount unchanged.
  • Passing supplierOtherFeesNote updates the supplier other fees note.
  • Passing supplierOtherFeesNote: null clears the supplier other fees note.
  • Omitting supplierOtherFeesNote leaves the supplier other fees note unchanged.
  • At least one cost field must be provided.
  • Monetary cost fields must be non-negative when provided.

Error Scenarios

  • **NOT_FOUND**: the fulfillment 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_costs permission
updateFulfillmentCosts(
input: UpdateFulfillmentCostsInput!
): OrderFulfillment!

Arguments

updateFulfillmentCosts.input ● UpdateFulfillmentCostsInput! non-null input common

Parameters for UpdateFulfillmentCosts

Type

OrderFulfillment object orders

This type represents an order fulfillment. An order can have multiple fulfillments, each one associated with a warehouse and a party that fulfilled the order.