Skip to main content

carrierAssignWarehouse

DEPRECATED

Use carrierAssignWarehouseAndReturnCarrier instead.

Assign a warehouse to a carrier for shipping operations (deprecated).

Associates a warehouse with a carrier to enable shipping services from that fulfillment location. This method is deprecated and returns only a boolean success indicator. 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]

carrierAssignWarehouse(
id: Int!
warehouseId: Int!
): Boolean! @deprecated

Arguments

carrierAssignWarehouse.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.

carrierAssignWarehouse.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

Boolean scalar

The Boolean scalar type represents true or false.