Wholesale orders guide

Create a draft order from a spreadsheet

What you’ll need

  • The buyer’s order (a purchase order spreadsheet, or SKUs and quantities)

  • Your store’s address

  • Shopify’s free GraphiQL app (with only for a draft order: read_products, write_draft_orders access)

    How to get this: Shopify’s free GraphiQL app
    1. Install it once from shopify-graphiql-app.shopifycloud.com: enter your store address, tick the access listed here, click Install and approve.
    2. Then open it any time from Apps › Shopify GraphiQL App in your admin.

    Step-by-step guide (opens in a new tab)

Open the Wholesale Order Sheet

Steps

  1. Drop the PO spreadsheet, or paste lines like “TEE-BLK-M 24”.
  2. Type the buyer’s company name, run the lookup query in GraphiQL (read_products and read_customers scopes) and paste the result.
  3. Fix anything not found. Repeated SKUs are added together and flagged.
  4. Choose Draft order, pick the company location and contact, add the PO number, tick the confirmations and run the mutation (write_draft_orders scope).
  5. Open the draft in Orders > Drafts, check prices and terms, then send the invoice from there.

Prices and terms

The mutation doesn’t set prices. Because the draft is for a company location, Shopify applies that location’s catalog prices and payment terms. If the sheet’s prices differ from your regular prices, the tool notes it but doesn’t change anything.

Stock

Draft orders don’t hold stock by default. You can choose to reserve it for 1, 2 or 7 days; otherwise the tool warns you when a line asks for more than you have.

More guides

Based on Shopify’s cart permalinks, draftOrderCreate and B2B draft orders.