← API reference
Mutation / logistics

upsertWarehouseTransfer

Create a warehouse transfer, or wholly replace an existing one when input.id is supplied. Returns validation errors instead of saving when source and destination match or quantity is not positive. Requires warehouseTransfer:write permission.

Arguments

Full transfer to write, optionally carrying the id of the transfer to replace.

Returns WarehouseTransferPayload!

Explore in a view

Fulfillment
View exact SDL
"""
Create a warehouse transfer, or wholly replace an existing one when input.id is supplied. Returns validation errors instead of saving when source and destination match or quantity is not positive. Requires warehouseTransfer:write permission.
"""
upsertWarehouseTransfer(
  """
  Full transfer to write, optionally carrying the id of the transfer to replace.
  """
  input: UpsertWarehouseTransferInput!
): WarehouseTransferPayload! @topic(names: ["logistics"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.