Skip to main content

recordShipmentCosts

Record Shipment Costs (async)

Asynchronously records the cost lines of a shipment into the product economics log. Each ShipmentItem with a product becomes a snapshot with source: SHIPMENT, source_object_type: SupplyChain::Models::SupplyShipment, and source_object_id: <shipment_id>.

Idempotency: re-running this mutation for the same shipment is safe. Pass removeExistingForShipment: true to first delete any prior shipment-sourced rows for this shipment_id before inserting.

Authentication

Requires authentication and the products:record_shipment_costs permission on the shipment's company.

recordShipmentCosts(
input: RecordShipmentCostsInput!
): RecordShipmentCostsPayload

Arguments

recordShipmentCosts.input ● RecordShipmentCostsInput! non-null input common

Parameters for RecordShipmentCosts

Type

RecordShipmentCostsPayload object common

Autogenerated return type of RecordShipmentCosts.