wholesale_order_create

Arguments

ArgumentTypeRequiredDefaultDescription
dataCreateWholesaleOrderInput!Yes

Return Type

WholesaleOrderMutationOutput

Mutation

mutation wholesale_order_create(
  $data: CreateWholesaleOrderInput!
) {
  wholesale_order_create(
    data: $data
  ) {
    request_id
    complexity
    wholesale_order {
      ...WholesaleOrderFragment
    }
  }
}

Variables

{
  "data": {
    "customer_account_id": "QWNjb3VudDoxMjM0",
    "order_number": "SO-100045",
    "partner_order_id": "SHOPIFY-100045",
    "shop_name": "SO-100045",
    "fulfillment_status": "pending",
    "order_date": "2026-07-09T15:30:00Z",
    "total_tax": "19.99",
    "subtotal": "19.99",
    "total_discounts": "19.99",
    "total_price": "19.99",
    "box_name": "SO-100045",
    "currency": "19.99",
    "ready_to_ship": true,
    "insurance_amount": 19.99,
    "shipping_lines": {title: "Standard Shipping", price: "5.99"},
    "shipping_address": {address1: "123 Fulfillment Ave", city: "New York", country: "US"},
    "billing_address": {address1: "123 Billing St", city: "New York", country: "US"},
    "third_party_shipper": "US",
    "from_name": "SO-100045",
    "note_attributes": [[{id: "T3JkZXI6MTIzNA==", order_number: "SO-100045"}]],
    "tags": ["priority", "vip"],
    "line_items": [[{sku: "BLUE-TEE-M", quantity: 2}]],
    "gift_note": "Customer requested expedited handling.",
    "gift_invoice": true,
    "require_signature": true,
    "adult_signature_required": true,
    "alcohol": true,
    "insurance": true,
    "allow_partial": true,
    "allow_split": true,
    "custom_invoice_url": "https://example.com/resource",
    "email": "customer@example.com",
    "profile": "default",
    "packing_note": "Customer requested expedited handling.",
    "required_ship_date": "2026-07-09T15:30:00Z",
    "auto_print_return_label": true,
    "hold_until_date": "2026-07-09T15:30:00Z",
    "incoterms": "DAP",
    "tax_id": "UmVjb3JkOjEyMzQ=",
    "tax_type": "19.99",
    "flagged": true,
    "saturday_delivery": true,
    "ignore_address_validation_errors": false,
    "skip_address_validation": false,
    "priority_flag": true,
    "allocation_priority": 1,
    "holds": {operator_hold: true, fraud_hold: false},
    "dry_ice_weight_in_lbs": "1.25",
    "ftr_exemption": 1.5,
    "address_is_business": true,
    "tote_qa": true,
    "do_not_print_invoice": false,
    "ignore_payment_capture_errors": false,
    "service_point_id": "UHVyY2hhc2VPcmRlcjoxMjM0",
    "partner_source_name": "shopify",
    "shipping_option": "LTL",
    "staging_location_id": 1234,
    "picking_flow": "PICK_TO_TOTE",
    "outbound_progress": "NOT_STARTED",
    "pickup_date": "2026-07-09T15:30:00Z",
    "preparation_date": "2026-07-09T15:30:00Z",
    "order_type": "retail",
    "gs1_labels_required": true,
    "trading_partner_id": "UmVjb3JkOjEyMzQ=",
    "trading_partner_name": "SO-100045",
    "store_location_number": "STORE-100",
    "store_address1": "123 Fulfillment Ave",
    "store_city": "New York",
    "store_country": "US",
    "store_state": "NY",
    "store_zip": "10001",
    "distribution_center": "DC-East",
    "distribution_center_number": "DC-01",
    "purchase_order_type": "standard",
    "vendor": "Acme Supplies",
    "vendor_id": "VmVuZG9yOjEyMzQ=",
    "requested_delivery_date": "2026-07-09T15:30:00Z",
    "ship_not_before_date": "2026-07-09T15:30:00Z",
    "ship_no_later_than_date": "2026-07-09T15:30:00Z",
    "depositor_order_number": "SO-100045",
    "department": "Apparel",
    "department_number": "42",
    "division": "North",
    "service_level": "standard",
    "internal_supplier_number": "SUP-1001",
    "terms_of_sale": "NET30",
    "retailer_notes": "Customer requested expedited handling.",
    "quote_number": "Q-100045",
    "sales_requirement_code": "STANDARD",
    "reference_fields": {"reference_id": "REF-100045", "notes": "Fragile"},
    "wholesale_shipping_details": {carrier: "ups", method: "ups_ground"}
  }
}

Response

{
  "data": {
    "wholesale_order_create": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "wholesale_order": {id: "T3JkZXI6MTIzNA==", order_number: "SO-100045"}
    }
  }
}