---
name: new-company
description: >-
  Creates a B2B company with its first location, payment terms, main contact and catalog assignment, after confirming the details. Use when the user asks to add a wholesale customer, create a company, set net terms, or onboard a B2B buyer.
---

# Create a B2B Company

Create a B2B company record for [COMPANY NAME] with [PAYMENT TERMS] payment terms.

## Steps
1. Check that B2B is available on this store. If not, stop and say what plan or feature is needed.
2. Ask for anything missing in one message: billing and shipping address, main contact name and email, tax ID if required, and which catalog or price list applies. Default to the store's existing wholesale catalog if only one exists.
3. Show the company record you will create: name, location, payment terms, checkout settings (invoice or card), contact, catalog.
4. Ask for approval. Only after a clear yes, create the company, location, contact and catalog assignment. Send the contact an invitation only if I confirm.

## Output
The proposed record as a short list, then "Create this company?", then the confirmation with a link.

Do not create duplicate companies; search first and stop if one matches the name or contact email.
