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
- Install it once from shopify-graphiql-app.shopifycloud.com: enter your store address, tick the access listed here, click Install and approve.
- Then open it any time from Apps › Shopify GraphiQL App in your admin.
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.
- Export your customers (Customers > Export) as a backup.
- Drop your spreadsheet into the tool and fix anything marked Blocking.
- Run the read-only lookup query in GraphiQL and paste the result. It finds your payment terms, existing customers and existing companies.
- Tick the confirmations, then run round 1 with one company first. Check it in Customers > Companies.
- 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
- Migrate wholesale customers to Shopify B2B
- Can non-Plus stores create companies through the API?
- Set Net 30 payment terms for many B2B companies
- Company import errors and how to fix them
Based on Shopify’s companyCreate, Apps and B2B, creating companies and B2B features by plan.