carrierAssignWarehouseAndReturnCarrier
Assign a warehouse to a carrier and return the updated carrier.
Associates a warehouse with a carrier to enable shipping services from that fulfillment location. Returns the updated carrier with the new warehouse assignment for immediate use in shipping calculations. Validates warehouse existence against the warehouse service before assignment.
Possible errors:
- CARRIER_NOT_FOUND_ERROR: Carrier with the specified ID does not exist in the system
- CARRIER_ASSIGN_WAREHOUSE_ERROR: Failed to assign warehouse to carrier due to data source issues or warehouse validation failure
- FORBIDDEN: Insufficient permissions to assign warehouses to carriers
AUTH: Role=[logistics.OWNER,logistics.EDITOR]
carrierAssignWarehouseAndReturnCarrier(
id: Int!
warehouseId: Int!
): Carrier!
Arguments
carrierAssignWarehouseAndReturnCarrier.id
● Int!
non-null scalar
Unique identifier of the carrier.
Must be a positive integer representing a valid carrier ID in the system. This ID is used to locate the carrier for warehouse assignment.
carrierAssignWarehouseAndReturnCarrier.warehouseId
● Int!
non-null scalar
Unique identifier of the warehouse to assign.
Must be a positive integer representing a valid warehouse ID in the system. This warehouse will be validated against the warehouse service before assignment.
Type
Carrier
object
Shipping carrier configuration for logistics and delivery operations.
Represents a shipping company or service provider including service details, coverage areas, pricing information, and integration settings. Used for shipping calculations, order fulfillment, and logistics management.