carrierUnassignWarehouseAndReturnCarrier
Remove warehouse assignment from a carrier and return the updated carrier.
Disassociates a warehouse from a carrier, removing shipping services from that fulfillment location. Returns the updated carrier with the warehouse removed from coverage areas for immediate use in shipping calculations.
Possible errors:
- CARRIER_NOT_FOUND_ERROR: Carrier with the specified ID does not exist in the system
- CARRIER_UNASSIGN_WAREHOUSE_ERROR: Failed to unassign warehouse from carrier due to data source issues
- FORBIDDEN: Insufficient permissions to unassign warehouses from carriers
AUTH: Role=[logistics.OWNER,logistics.EDITOR]
carrierUnassignWarehouseAndReturnCarrier(
id: Int!
warehouseId: Int!
): Carrier!
Arguments
carrierUnassignWarehouseAndReturnCarrier.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 unassignment.
carrierUnassignWarehouseAndReturnCarrier.warehouseId
● Int!
non-null scalar
Unique identifier of the warehouse to unassign.
Must be a positive integer representing a valid warehouse ID in the system. This warehouse will be removed from the carrier's coverage areas.
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.