B2B companies guide

Company import errors and how to fix them

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

Before anything runs

  • Region isn’t a state or province: use the two-letter code (ON, BC, NY, CA) or the full name for US, Canada and Australia.
  • Country isn’t recognised: use a two-letter code like US or GB, or the English name.
  • ZIP lost its leading zero: Excel drops it. The tool pads US ZIP codes back to 5 digits and tells you.
  • Excel scientific notation (1.23E+11) in IDs, tax IDs or ZIPs: the digits are gone; format the column as Text and re-enter them.
  • Phone numbers need a country code (+44 20 …). US and Canadian 10-digit numbers get +1 added.

After you run a batch

Failed items stay in the next round so you can re-run them once fixed. Pasting the same result twice is safe.

  • “has already been taken” on externalId: that Company ID or Location ID exists. Change it or remove it from the sheet.
  • Email taken: the email belongs to a customer the lookup didn’t see. Run the lookup again; the tool will add them as an existing customer instead.
  • “Access denied”: the GraphiQL app lacks write_customers, or the B2B API isn’t open to your store.
  • “Throttled”: wait a minute and run the same batch again.

More guides

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