B2B companies guide

Import B2B companies into Shopify from a CSV

What you’ll need

  • Your wholesale customer list (a spreadsheet)

  • A Shopify plan with B2B (B2B is a Shopify Plus feature)

  • Shopify’s free GraphiQL app (with read_customers, write_customers, write_companies 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 B2B Companies Importer

What the spreadsheet needs

One row per contact at a location. Rows with the same company name (or Company ID) become one company; rows with the same location name become one location.

  • Required: Company.
  • Location: Location, Address 1, Address 2, City, Region (state or province code), ZIP, Country, Location Phone.
  • Settings: Payment Terms (Net 7/15/30/45/60/90 or Due on fulfillment), Orders As Drafts, Ship To Any Address, Tax ID, Tax Exempt, Tax Exemptions.
  • Contacts: Email, First Name, Last Name, Contact Phone, Job Title, Contact Role (Ordering only or Location admin).

How the import runs

New companies need IDs that Shopify only gives back after they exist, so the import runs in rounds. You paste each round’s result back and the tool writes the next one.

  1. Export your customers (Customers > Export) as a backup.
  2. Drop your spreadsheet into the tool and fix anything marked Blocking.
  3. Run the read-only lookup query in GraphiQL and paste the result. It finds your payment terms, existing customers and existing companies.
  4. Tick the confirmations, then run round 1 with one company first. Check it in Customers > Companies.
  5. Paste the result, run the rest of round 1, then rounds 2 and 3 for extra locations, contacts and roles.

What it never does

It never edits or deletes a company that was already in your store: those are skipped and listed. It doesn’t send invitations or emails. The only delete it can write is an undo for companies this import created, behind a second confirmation.

More guides

Based on Shopify’s companyCreate, Apps and B2B, creating companies and B2B features by plan.