Skip to content
Install for free
English
EnglishFrenchSoonItalianSoonJapaneseSoonSpanishSoonPortuguese (Portugal)SoonGermanSoonCzechSoonDanishSoonFinnishSoonKoreanSoonNorwegian (Bokmål)SoonDutchSoonPolishSoonPortuguese (Brazil)SoonTurkishSoonChinese (Simplified)SoonChinese (Traditional)Soon
Open in Claude Ask questions about this pageOpen in ChatGPT Ask questions about this page

Existing Shopify customers

Choose what an approval does when the buyer's email already belongs to a Shopify customer, and add tags to every customer a form approves.

Many wholesale buyers already shop at your store as retail customers. When you approve their application, Sami B2B Onboarding finds that customer by email instead of creating a second one. Each form’s Shopify panel decides whether the approval keeps that customer’s details or replaces them with the answers, and which extra tags the customer gets.

Nothing is written to Shopify when a buyer submits. The app writes the customer when the application is approved, whether by someone on your team, by a rule or by a Shopify Flow workflow. It does the same when you add the buyer to a company you already have with Add buyer.

At that moment, the app:

  1. Looks for a Shopify customer with the same email as the application. Upper and lower case don’t matter, but the whole address must match.
  2. Creates a customer from the mapped answers if there’s none.
  3. Applies If the customer already exists if there is one.
  4. Marks the customer as approved either way: the B2B approved metafield is turned on and the tag b2b-approved is added.

A buyer who was signed in to their customer account when they applied is already linked to that account. Approving them uses that customer and marks them as approved, but leaves their details as they are and adds no other tags, whatever this setting says.

Choose what happens to an existing customer

Section titled “Choose what happens to an existing customer”
  1. Go to Forms and click Edit beside the form. In the rail on the left, click Integrations. Under Connected apps, click Manage on the Shopify row.

    The Shopify panel opens. Its first section, Customer, lists the answers that fill the customer, with two settings below them.

  2. In If the customer already exists, choose one of the options in the table below.

    The Customer section of the Shopify panel, with Update with application data chosen and the tag wholesale added.

    These two settings, below the Customer rows, decide what approval does to the Shopify customer.

  3. Click Save in the save bar. You see Form saved.

Option What approval does to a customer who already exists
Keep existing customer data (default) Links the application to the customer and changes nothing on them: not their name, phone, tags or metafields. No tags are added, not even the preset’s or this panel’s. They only get the approved flag and the b2b-approved tag.
Update with application data Writes the mapped first name, last name, phone and customer metafields over the customer’s own. Adds the approval preset’s tags, this panel’s tags and any tags from answers, and keeps the tags the customer already had. The email doesn’t change.

A new customer always gets everything: the mapped details and all the tags.

If Shopify refuses only the phone number, for example because of its format, the app saves the customer without it. The phone stays on the application.

Add tags to every customer this form approves

Section titled “Add tags to every customer this form approves”
  1. In the Customer section of the Shopify panel, tick Add tags to the customer. A tag box appears.

  2. Type a tag and press Enter or ,. The box suggests tags your store’s customers already have. The note under it reads On top of the preset’s tags. To tag from an answer, map a field to Tags (add).

  3. Click Save in the save bar.

The tags go on every new customer this form approves. They go on existing customers only with Update with application data. To tag buyers by what they answered, map a field to Tags (add) or give a choice its own customer tags. See Map answers to Shopify.

The Company location section of the same panel has a Separate billing address box. It decides whether the company’s first location gets its own billing address.

  • Off: the billing address is the shipping address. Only the shipping fields are listed for mapping.
  • On: the Billing · fields are added to the list, so you can map your form’s billing questions to them.

While any billing field is mapped, the box stays ticked and can’t be cleared.

Section What it holds
Customer The answers that fill the customer’s email, name, phone, job title and tags, plus the two settings on this page.
Company The answers that fill the company’s name, external ID, note and tags.
Company location The answers that fill the location’s shipping and billing address.
Metafields Answers saved in your own customer or company metafields.

A note at the bottom reminds you where the rest comes from: Activation email: Settings → Email. Catalog, payment terms and role: the preset chosen at approval. The approval email itself, Account approved, is edited in the form builder’s Email section. See Edit email templates. To set up the mapping, see Map answers to Shopify.

After you approve, open the application in Companies › Applications. On its Timeline, click the Shopify customer entry to see the result:

Result What it means
Created Shopify customer No customer had this email, so the app created one.
Matched an existing Shopify customer and kept its data Keep existing customer data linked the existing customer.
Updated the existing Shopify customer with the application data Update with application data wrote the answers over the customer’s details.
Shopify didn’t create the customer, or Shopify didn’t update the customer, followed by Shopify’s reason Shopify refused the change. The reason says which detail it didn’t accept.

The application’s Timeline with the Shopify customer entry open, reading Matched an existing Shopify customer and kept its data.

The Shopify customer entry tells you whether the app created, kept or updated the customer.

In the Shopify admin, go to Customers and open the buyer. The B2B approved metafield is on, and the b2b-approved tag is there.

Was this helpful?