warehouse_create

Create an active physical warehouse, with profile default, in the authenticated account.

The warehouse is created with the provided values only; nothing is copied from existing warehouses. Duplicate identifiers are rejected; existing warehouses are never updated or reactivated.

Arguments

ArgumentTypeRequiredDefaultDescription
dataCreateWarehouseInput!Yes

Return Type

WarehouseCreateOutput

Mutation

mutation warehouse_create(
  $data: CreateWarehouseInput!
) {
  warehouse_create(
    data: $data
  ) {
    request_id
    complexity
    warehouse {
      ...WarehouseFragment
    }
  }
}

Variables

{
  "data": {
    "identifier": "East Coast",
    "invoice_address": CreateWarehouseAddressInput,
    "label_address": CreateWarehouseAddressInput,
    "phone_number": "+1-555-0100",
    "invoice_email": "invoices@example.com",
    "invoice_note": "Thank you for your order.",
    "language": "ES",
    "timezone": "America/New_York",
    "manual_order_prefix": "WEB",
    "show_phone_on_invoice": false,
    "only_pick_orders_with_required_ship_date_today_or_earlier": true,
    "exclude_stock_from_available_to_sell": true
  }
}

Response

{
  "data": {
    "warehouse_create": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "warehouse": Warehouse
    }
  }
}