B2B Companies Importer
Turn a wholesale customer list into Shopify B2B companies, locations and contacts with payment terms. Shopify has no CSV import for companies, so this checks your sheet and writes the GraphQL to run in Shopify’s free GraphiQL app.
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.
1Your wholesale customer list
Try:
2Look up your store Read-only
Open Shopify’s GraphiQL app, tick the read_customers scope, choose API version 2026-10, run this query and paste the whole result below. It finds your payment terms, which emails are already customers, and which companies already exist. It changes nothing.
No store handy?
3Create the companies Writes to your store
4Paste the results
After each batch, paste Shopify’s response here. We record the new IDs and list anything that failed with Shopify’s reason. Then make the next round: extra locations, contacts and their roles.
Continue later
Save progress after each round. To continue in a new tab, load the same CSV, paste the lookup again, then load the progress file.
Undo this import
How it works
- Drop your list. Rows are grouped into companies, locations and contacts, and every value is checked: countries, states, ZIP codes, phones, emails, payment terms and tax exemptions.
- Run the read-only lookup so nothing is created twice and terms match your store.
- Back up, tick the confirmations, and run round 1 with one company first.
- Paste each result back. The tool writes the next round (extra locations, contacts, roles) from the IDs Shopify returned.
Guides
Questions
Does this work on Basic, Grow and Advanced plans?
Shopify says B2B companies work on those plans, but its developer docs limit the B2B API to dev stores, Shopify Plus Partners and Shopify affiliates. Whether a regular non-Plus store can run them in the GraphiQL app depends on Shopify’s access rules for your store. The read-only lookup in step 2 tells you quickly: if Shopify blocks it, use Shopify’s “Add to company” bulk action instead.
Will it change companies I already have?
No. The lookup lists your existing companies, and any company in your sheet with the same name or Company ID is skipped. The importer only creates new companies.
Will my customers get an email?
The mutations don’t send invitations or notifications. Shopify may still email customers in other situations (for example if you later send an account invite); confirm on a development store first.
Can I undo it?
Yes, for companies this import created: after you paste results, the Undo section writes a companiesDelete for exactly those companies, behind a second confirmation. Customers created as contacts stay in your store as regular customers.
Is my file uploaded?
No. The spreadsheet is read in your browser and the site never connects to your store.
Mutations and fields follow Shopify’s Admin GraphQL API 2026-10 (companyCreate, Apps and B2B).