shipping_plan_create

Arguments

ArgumentTypeRequiredDefaultDescription
dataCreateShippingPlanInput!Yes

Return Type

CreateShippingPlanOutput

Mutation

mutation shipping_plan_create(
  $data: CreateShippingPlanInput!
) {
  shipping_plan_create(
    data: $data
  ) {
    request_id
    complexity
    shipping_plan {
      ...ShippingPlanFragment
    }
  }
}

Variables

{
  "data": {
    "subtotal": "abc123",
    "shipping_price": "abc123",
    "total_price": "abc123",
    "warehouse_id": "abc123",
    "warehouse_note": "abc123",
    "vendor_po_number": "abc123",
    "line_items": [LineItemInput],
    "packages": [PackageInput],
    "pallet": PalletData
  }
}

Response

{
  "data": {
    "shipping_plan_create": {
      "request_id": "abc123",
      "complexity": 987,
      "shipping_plan": ShippingPlan
    }
  }
}