/shopify-pack:shopify-b2b-wholesalefrom shopify-pack
Builds Shopify Plus B2B features including companies, catalogs, price lists, and wholesale checkout using the GraphQL Admin API.
Ships in shopify-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Shopify Plus B2B features let you create separate wholesale experiences with company accounts, custom catalogs, and tiered pricing. This skill covers the full B2B setup: companies, catalogs, price lists, and checkout configuration using the GraphQL Admin API. Requires a Shopify Plus plan.
read_customers, write_customers, read_products, write_products, read_ordersUse companyCreate with CompanyCreateInput — requires company (name, note), companyContact (email, firstName, lastName), and companyLocation (name, billingAddress, shippingAddress):
await client.request(COMPANY_CREATE, {
variables: {
input: {
company: { name: "Acme Wholesale Inc", note: "Tier 1 partner" },
companyContact: { email: "[email protected]", firstName: "Jane", lastName: "Doe" },
companyLocation: {
name: "Headquarters",
billingAddress: { address1: "123 Commerce St", city: "Austin", provinceCode: "TX", countryCode: "US", zip: "78701" },
shippingAddress: { address1: "123 Commerce St", city: "Austin", provinceCode: "TX", countryCode: "US", zip: "78701" },
},
},
},
});
// Always check userErrors in response — returns code like COMPANY_NOT_FOUND, INVALID
See references/company-management.md for the full mutation, additional contacts, locations, and roles.
Catalogs link products to specific companies. Use catalogCreate with a title, status, and context.companyLocationIds:
await client.request(CATALOG_CREATE, {
variables: {
input: {
title: "Wholesale Tier 1",
status: "ACTIVE",
context: { companyLocationIds: ["gid://shopify/CompanyLocation/123456"] },
},
},
});
Create a price list with priceListCreate. Use PERCENTAGE_DECREASE for blanket discounts or priceListFixedPricesAdd for per-variant overrides:
// 30% off all products in this catalog
await client.request(PRICE_LIST_CREATE, {
variables: {
input: {
name: "Wholesale 30% Off",
currency: "USD",
parent: { adjustment: { type: "PERCENTAGE_DECREASE", value: 30 } },
catalogId: "gid://shopify/Catalog/789",
},
},
});
For fixed price overrides, volume pricing, and multi-currency, see references/catalog-pricing.md.
B2B orders use draftOrderCreate with purchaseOrder number and purchasingEntity linking to the company. Key fields:
await client.request(DRAFT_ORDER_CREATE, {
variables: {
input: {
purchaseOrder: "PO-2026-0042",
lineItems: [{ variantId: "gid://shopify/ProductVariant/123", quantity: 100 }],
purchasingEntity: {
purchasingCompany: {
companyId: "gid://shopify/Company/456",
companyContactId: "gid://shopify/CompanyContact/789",
companyLocationId: "gid://shopify/CompanyLocation/012",
},
},
paymentTerms: { paymentTermsTemplateId: "gid://shopify/PaymentTermsTemplate/1" },
},
},
});
Payment terms templates: Due on receipt, Net 15, Net 30, Net 45, Net 60, Net 90. Query available templates with paymentTermsTemplates.
See references/b2b-checkout.md for the full draft order flow, invoice sending, and vaulted payments.
| Error | Cause | Solution |
|---|---|---|
COMPANY_NOT_FOUND | Invalid company GID | Verify the company ID exists via companyQuery |
CATALOG_LIMIT_EXCEEDED | Max catalogs per context reached | Remove unused catalogs or upgrade plan |
PRICE_LIST_NOT_FOUND | Price list not linked to catalog | Ensure catalogId is set on price list |
B2B_NOT_ENABLED | B2B feature not activated | Enable B2B in Shopify admin Settings > B2B (requires Plus) |
COMPANY_CONTACT_NOT_FOUND | Contact not associated with company | Create contact via companyContactCreate first |
INVALID_PURCHASING_ENTITY | Missing company/contact/location in draft order | All three IDs required in purchasingCompany |
Create a B2B company with multiple contacts, locations, and roles for a new wholesale account joining your program.
See Company Management for the full mutation and multi-contact setup.
Configure percentage-based discounts for standard wholesalers and fixed per-variant overrides for VIP partners using price lists.
See Catalog Pricing for percentage, fixed price, and volume pricing strategies.
Create a draft order with a PO number, Net 30 payment terms, and company association for a wholesale buyer.
See B2B Checkout for the full draft order flow, invoice sending, and vaulted payments.
What SKILL.md sets; muted values are Claude Code's defaults
38 skills in this plugin
/shopify-advanced-troubleshootingDebug complex Shopify API issues using cost analysis, request tracing,
webhook delivery inspection, and GraphQL introspection.
Use when encountering intermittent failures, throttling mysteries, or webhook delivery gaps.
Trigger with phrases like "shopify hard bug", "shopify mystery error",
"shopify deep debug", "difficult shopify issue", "shopify intermittent failure".
/shopify-ai-toolkit-wrapperIntegrate Shopify's AI Toolkit MCP server with Claude Code for GraphQL validation,
Liquid linting, and documentation search.
Use when setting up Shopify MCP integration, validating GraphQL queries,
or linting Liquid templates.
Trigger with phrases like "shopify ai toolkit", "shopify mcp",
"shopify claude integration", "shopify graphql validation", "shopify liquid lint".
/shopify-architecture-variantsChoose between Shopify app architectures: embedded Remix app, headless storefront with
Hydrogen, standalone integration, or theme app extension.
Use when starting a new Shopify project and deciding which architecture pattern to follow.
Trigger with phrases like "shopify architecture decision", "shopify embedded vs headless",
"shopify Hydrogen", "shopify app types", "which shopify architecture".
/shopify-checkout-extensionsBuild Checkout UI Extensions to customize Shopify checkout with sandboxed React-like components.
Use when replacing checkout.liquid (deprecated Aug 2025), adding custom fields to checkout,
displaying banners, or reading checkout state with hooks.
Trigger with phrases like "shopify checkout extension", "shopify checkout ui",
"checkout customization shopify", "checkout.liquid migration", "shopify checkout components".
/shopify-ci-integrationConfigure CI/CD pipelines for Shopify apps with GitHub Actions, API version testing,
and Shopify CLI deployment.
Use when setting up automated testing, deployment pipelines, or API version monitoring for Shopify apps.
Trigger with phrases like "shopify CI", "shopify GitHub Actions",
"shopify automated tests", "CI shopify", "shopify deploy pipeline".
/shopify-common-errorsDiagnose and fix common Shopify API errors including 401, 403, 422, 429, and GraphQL errors.
Use when encountering Shopify errors, debugging failed requests,
or troubleshooting integration issues.
Trigger with phrases like "shopify error", "fix shopify",
"shopify not working", "debug shopify", "shopify 422".
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin shopify-packOther plugins' skills for the same job