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": "19.99",
    "shipping_price": "19.99",
    "total_price": "19.99",
    "warehouse_id": "V2FyZWhvdXNlOjEyMzQ=",
    "warehouse_note": "Customer requested expedited handling.",
    "vendor_po_number": "PO-100045",
    "line_items": [[{sku: "BLUE-TEE-M", quantity: 2}]],
    "packages": [[{id: "UGFja2FnZUlucHV0OjEyMzQ="}]],
    "pallet": {id: "UGFsbGV0RGF0YToxMjM0"}
  }
}

Response

{
  "data": {
    "shipping_plan_create": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "shipping_plan": {id: "U2hpcHBpbmdQbGFuOjEyMzQ="}
    }
  }
}