Checkout AI: B2B Discounts
Privacy Policy
Effective November 14, 2026 · Smith Crafts LLC
Checkout AI: B2B Discounts (the “App”) is a Shopify app provided by Smith Crafts LLC (“we”, “us”). This policy explains what data the App accesses, why, and how we handle it. The App is an admin tool for authoring automatic B2B product, order, and shipping discounts that run inside Shopify’s Discount Function runtime. We do not inject scripts or trackers into your storefront, and we do not store your customers’ names, postal addresses, email addresses, phone numbers, IP addresses, order contents, or payment details. When you finish a rule drafted with AI, the App may ask to look up the company, location, collection, or product you named so you can pick it from a list, and it checks that your pick still exists before the rule is saved or published. It keeps the ID you pick. A name the App looks up is kept only where it appears in the title or message of your draft or rule.
Scopes we request
At install the App asks for two Admin API access scopes:
read_discounts,write_discounts— read and publish only the automatic app discount nodes the App owns for your shop. Nothing else in your discount catalogue is modified.
Only if you need them, the App may also ask for these optional scopes. Shopify shows you a permission prompt the first time, and you can decline, or remove them later in Shopify.
read_products— when you finish a rule drafted with AI that names a collection, product, or variant. The App searches your catalog and shows matching titles, with the number of products in a collection, the number of variants in a product, or a variant’s SKU, so you can pick the right one. It’s also asked for withread_markets, when you limit a discount to a B2B market, to show the names of each market’s catalogs.read_companies— when you finish a rule drafted with AI that names a B2B company or company location. The App searches your companies and shows matching company and location names, with each company’s number of locations, so you can pick the right one. If you have allowed it, the App also checks whether your store has any B2B companies when you draft a rule with AI (a yes or no), so the draft treats “wholesale” buyers as your companies or as tagged customers. It may also be asked for withwrite_draft_orders(below), to check company buyers at checkout. It’s also asked for withread_markets, to show how many company locations each B2B market covers.read_markets— when you limit a discount to one of your B2B markets. The App lists your B2B markets with each one’s name, whether it’s active, the names of its catalogs, and how many company locations it covers, so you can pick the right one. It saves the market’s ID and name with the discount, so Shopify gives the discount only to buyers in that market. If you’ve turned on the checkout check, the App also reads which company locations are in that market, so it checks the discount as one of its buyers.unauthenticated_read_checkouts,unauthenticated_write_checkouts,unauthenticated_read_product_listings— when you click “Load my checkout’s shipping rates” while choosing which shipping rates a discount applies to. The App picks one of your products that ships and is for sale online, puts it in a test cart with a delivery address you choose (your store’s own address unless you change the country, postal code, or city), and reads the names, prices, and delivery types of the shipping rates your checkout offers for that cart. No order or checkout is created, no customer is involved, and no email is sent; Shopify discards the cart on its own. Like a shopper’s cart, each read asks your delivery apps for their rates. Shopify’s permission screen lists these scopes as viewing customer device, activity, and geolocation data, viewing product listings, and editing the Online Store checkout page. After you publish a discount with a shipping rule, or when you click “Check at checkout”, the App uses the same scopes to make a few such test carts at the address you choose and selects each shipping rate in turn to confirm checkout takes off what your rule says; no order or checkout is created, no customer data is read, and the App keeps only the result (rate names and prices, discount amounts, and that address, plus the company and location IDs below if company buyers were checked), which is deleted with everything else onshop/redact.write_draft_orders— when you click “Check at checkout” on a discount with a rule for company buyers, along withread_companiesif you haven’t allowed it yet. The App uses it only to calculate a draft order for one of your companies, with one of your products and the address you choose, to confirm checkout takes off what your rule says for company buyers. It never saves a draft order, and no order is created. Once you allow it, the App checks company buyers whenever it checks such a discount. For this check the App reads your companies’ and locations’ names (shown to you, not stored), their IDs, how many contacts each company has, and one company contact’s ID, because Shopify’s calculation needs it. It never reads that contact’s name, email address, phone number, or address, and it never stores the contact’s ID. Shopify’s permission screen lists this scope as editing draft orders.
If you decline, the rest of the App works as before. A rule drafted with AI that needs one of these items can’t be finished without it, so you can describe the rule another way, for example with a customer tag or product tag. Without the checkout scopes you type the shipping rate names yourself instead.
The App does not request read_customers, write_customers, read_orders, read_all_orders, or write access to your products or companies. It never reads any person’s name, email address, phone number, or address. Of your company contacts, it reads only how many each company has and one contact’s ID, to check company buyers at checkout (see write_draft_orders above), and it never stores that ID. The Discount Function evaluates customer-tag membership and native B2B purchasingCompany context scope-free inside Shopify’s checkout Function runtime. Order-level webhooks are not subscribed to.
Protected Customer Data (PCD) — Level 1, no protected fields
The App does not retrieve Shopify Customer records through the Admin API or the Customer Account API. If you allow the optional read_companies scope, the App reads your B2B companies’ and company locations’ names and IDs, and each company’s number of locations, to show you choices and to check that the one you picked still exists. If you also allow write_draft_orders to check company buyers at checkout, the App reads the same names and IDs, how many contacts each company has, and one company contact’s ID, which Shopify needs to calculate the draft order. We handle this under Shopify’s Protected Customer Data Level 1 requirements. The App never reads Level 2 fields — the names, addresses, email addresses, or phone numbers of people — so it never reads that contact’s name, email address, phone number, or address, and it never stores the contact’s ID. Names are shown to you. The App stores the ID you pick, inside your discount rule. A name the App looks up is stored only where it appears in the title or message of your draft or rule. The request you type is stored as you wrote it (see “AI rule drafts” below).
Shopify groups the optional checkout scopes with customer geolocation data, because a checkout can hold a shopper’s address. The App only ever uses them on its own test cart, with the address you choose, so it never reads a shopper’s address, device, activity, or location, and it never changes your checkout page.
Its Shopify-hosted Discount Function evaluates only yes/no membership in the customer tags you specify and optional B2B buyer context during checkout, and sends nothing back to Smith Crafts LLC: we never receive a shopper’s customer ID, name, address, email address, phone number, or the raw Function input from checkout. Apart from what “AI rule drafts” below lists, the App sends Anthropic nothing from your store: no customer or order data, and no company, product, or collection details. What you type in an AI request is sent as you wrote it, so if you type a company’s or a person’s name there, that text does reach Anthropic. The App stays subscribed to the mandatory Shopify privacy compliance webhooks below; when one names a customer, the App does not store or log that customer’s ID or contact details.
Webhooks we subscribe to
app/uninstalled— required by Shopify. Fires when the merchant removes the App; we delete session records for the shop as soon as Shopify confirms the removal. Otherwise they are deleted with theshop/redactdeletion, after the checks described under “Data retention & deletion” below.app/scopes_update— required by Shopify. Fires when the approved scope set changes so the App can re-authenticate before its next request.customers/data_request,customers/redact,shop/redact— the three mandatory Shopify privacy compliance topics. See Data retention & deletion below for exactly how each is handled.
The App does not subscribe to orders/create, orders/updated, or any other order-, customer-, or checkout-event topic. No order or checkout data is delivered to our servers at runtime.
What we store
- Shop identity & access tokens. Your shop domain and the offline access token Shopify issues at install, used to authenticate the App to your store. Kept while the App is installed and deleted on uninstall and on
shop/redact. - Merchant-staff session data. The App uses Shopify’s Prisma session-storage adapter. Its schema includes columns for the Shopify staff user who installed or authorized the App —
userId,firstName,lastName,email,locale,accountOwner,collaborator, andemailVerified. The App itself does not read these fields for any feature; they may be populated by Shopify during authentication. They are deleted with the shop’s sessions on uninstall and onshop/redact. - Discount programs and publish history. The discounts you build (targets, conditions, tiers, actions, messages) and the compiled Discount Function configuration — merchant-authored, not personal data. Every publish appends an immutable version record (compiled configuration, source intent, content hash, source such as “manual” or “ai” or “rollback”) so you can see the publish history for the App’s single discount node.
- Discount activation state. One row per shop that records the App’s discount-node id and its lifecycle (active, inactive, publishing, missing, or reconciliation_required) so publishing is idempotent across retries and crashes.
- IDs you pick for a rule. Only the IDs of the companies, company locations, collections, products, or variants you choose for a rule are stored — inside that rule’s discount configuration, its AI draft, and its publish history. The App does not store the names it looks up, except where a name appears in the title or message of your draft or rule, and it does not copy your company list or your product catalog.
- AI rule drafts (optional). If you use the draft-a-rule-with-AI feature, the rule description you type is sent to our AI sub-processor (Anthropic) to generate a draft. The text you typed and the drafted rule are stored per shop so you can review, edit, and publish them. If a draft still needs you to pick a company, location, collection, or product, it is kept only in that browser tab (signed so it can’t be altered) and saved only once it is complete. It stays there until you finish it or close the tab; after 24 hours it can no longer be used, and the App clears it the next time you open AI drafts for that store. With your description the App sends your store’s currency, whether your store has any B2B companies (yes or no, if you allowed
read_companies) and, when you have loaded them, your checkout’s shipping rate names, an example price for each, and the country and postal code they were loaded for (see below), so the draft uses your real rate names. If a draft asks you a question (which shipping rates, which buyers, or an amount), your answer is not sent: the App fills it in itself. No customer data is sent to the AI provider, and nothing else the App looks up in your store. - AI usage counters and plan state. Per-shop AI call counts, the detected billing plan handle, subscription id, and the current billing-period start, used to enforce plan-based quotas.
- Alert preferences and delivery records. Per-shop settings for in-app alerts (route mode, digest cadence, dollar-floor, mute state) and a per-alert delivery record used to dedupe repeat alerts. No customer identifiers are stored.
- “Checked at checkout” results. For each published discount with a shipping rule, the result of its last check: the test carts’ totals, the shipping rate names and prices they were offered, the discount checkout took off each one and what your rule says it should, the titles of the discounts involved, the IDs of the company and company location used for company buyers, if any (not their names, and nothing about any contact), and the test address used (your store’s address or one you chose). Each check replaces the last one.
- Daily shipping-rate check. The places you last loaded your checkout’s shipping rates for (country, region, postal code, and city; never a street), the rate names seen there without pickup-point details, which of those names each discount rule covered on recent checks, and the notices shown on your Discounts page, including the ones you dismissed. No customer data.
- Support submissions. If you send a message through the App’s help form, we store the message you typed, the shop domain, and any contact address you provided so we can reply. A copy goes to our own support inbox; see “Support requests” below.
- Privacy-webhook audit log. One record per GDPR webhook delivery, keyed on Shopify’s webhook ID (a repeated delivery of the same webhook updates the same record): the topic, the shop domain, a SHA-256 digest of topic|shop|webhook ID|timestamp, the outcome (received, failed, or completed), retry counts, any error message (with the shop domain replaced by a one-way hash), and when it arrived and was resolved. It never holds customer names, email addresses, postal addresses, phone numbers, or customer IDs. While a deletion is waiting to be retried or is held for review, the record also keeps what the retry needs (the order IDs listed in a
customers/redactrequest, or the shop domain for ashop/redact, with Shopify’s last answer to the App’s install check and a one-way hash of the App’s access tokens for the shop), and clears it as soon as the deletion succeeds. For ashop/redact, the record’s shop field holds only a one-way hash of the shop from the moment it is written; the shop domain appears only in those retry details, and only while the deletion is pending or held for review. These hashes are pseudonymous, not anonymous: the domain can’t be read back from a hash, but anyone who already knows a domain can compute its hash and match it. A resolved record becomes eligible for deletion 90 days after it was resolved and is removed by the next daily clean-up. A record that isn’t resolved is kept until it is, except that ashop/redactdeletes that shop’s other audit records (for example itscustomers/redactandcustomers/data_requestrecords) whether or not they were resolved. - Server logs. Our hosting provider (DigitalOcean App Platform) keeps the App’s server logs. The App’s request log covers the requests that reach the App (static files such as scripts and stylesheets are served without being logged). For each such request it records the method, the page address, the status, and the response time. In the page address, only whether the App is embedded and the language are kept as sent; the shop domain is replaced by a one-way hash; and every other value, including access tokens, signatures, and unsubscribe links, is replaced by “[redacted]”. The logs also hold short operational lines. Lines about the privacy webhooks name the shop only by that one-way hash and never include a customer ID; other operational lines can name a shop’s domain. As above, these hashes are pseudonymous, not anonymous. We don’t forward these logs to any other service or archive them, and DigitalOcean doesn’t publish a fixed period for how long it keeps them.
- Review-prompt state. Whether we have already prompted you to review the App and whether you dismissed the prompt.
- Instrumentation events. Per-shop lifecycle events (installed, first-publish, alert-preferences-changed) with the shop domain and an event timestamp, used to measure activation and diagnose regressions. No customer or order data.
What we look up but don’t keep
When you finish, test, save, or publish a rule drafted with AI, and only if you allowed the optional scope, the App reads these from Shopify at that moment: collection, product, and variant titles, product and variant counts, and variant SKUs; B2B company and company-location names and location counts. They are used only to show you choices, to check that your pick still exists, and to name your pick in the rule summary. They are not sent to our AI provider, and they are not written to our database, except a name that appears in the title or message of your draft or rule.
When company buyers are checked at checkout, and only if you allowed write_draft_orders, the App reads your companies’ and locations’ names and IDs, how many contacts each company has, and one company contact’s ID. The names are shown to you so you can pick the company to check as. Of these, the check’s result keeps only the company and location IDs; the names and the contact’s ID are never written to our database.
When you click “Load my checkout’s shipping rates”, the App reads the shipping rate names, prices, and delivery types your checkout offers for its test cart (see “Scopes we request”). They are shown to you and kept only in that browser tab until you close it; from this read, our database keeps only what the daily check below needs. The rate names you tick or type are saved in your rule, like any name you type. If you draft a rule with AI after loading them, the rate names, an example price for each, the country and postal code of the test address, and the day you loaded them are sent with your request so the draft can use them. The App passes your own IP address to Shopify with each read, so Shopify’s bot protection treats it as you, and does not store it. Once a day the App also reads these rates by itself, with the same permissions and test cart, at the places you last chose (or your store’s address), so it can tell you when a discount stops covering one of them. For that daily check it keeps only the rate names seen there, when you last loaded them and on each check (without pickup-point details), and the country, region, postal code, and city of those places, never any customer’s details.
What we do not do
- We do not store your customers’ names, postal or shipping addresses, email addresses, phone numbers, IP addresses, order contents, or payment details.
- We do not read any person’s name, address, email address, or phone number, and we do not keep the names the App looks up for your companies, locations, collections, or products, except where a name appears in the title or message of your draft or rule. Of your company contacts, we read only how many each company has and one contact’s ID, to check company buyers at checkout, and we never store that ID.
- We do not receive order webhooks and do not maintain a copy of your orders. Discount evaluation happens inside Shopify’s Function runtime; only the aggregate outputs the Function returns are visible to Shopify.
- We do not sell, rent, or share your data with third parties for their marketing.
- We do not use your shop’s data to train AI models.
- We do not inject scripts or tracking pixels into your storefront. Discounts run inside Shopify’s own Function runtime.
Support requests
This covers messages you send through the App’s help form and email you send to [email protected].
- What we keep. Your message, your email address or the contact you gave us, your shop domain (the help form adds it), and our replies. Email stays in our support mailbox, which Google hosts (Google Workspace). We also copy each email into our support desk, a ticket system we run ourselves, and each help-form message into a support inbox we also run ourselves.
- AI-drafted replies. An AI assistant built on Anthropic’s Claude reads each request and drafts a reply. A person on our team reads the draft and decides what to send. Nothing goes to you without that approval, except an automatic note confirming we received a help-form message. We keep the drafts and the assistant’s notes on each request.
- How long. We don’t delete support messages on a set schedule. We keep them so we can follow up, see what you told us before, and spot problems that keep coming back. To have yours deleted, email [email protected]. After we delete them, copies can stay in our backups until those backups expire.
Sub-processors
- Shopify (Shopify Inc.) — hosts the platform, issues the OAuth tokens the App uses, sends the webhooks we subscribe to, and processes billing for our paid plans.
- DigitalOcean, LLC — hosts the App’s compute (App Platform) and provides the managed PostgreSQL database where the tables described above are stored. Both run in DigitalOcean’s U.S. East / New York region. Traffic to the App and to the database is served over TLS, and data is encrypted at rest.
- Anthropic, PBC — provides the AI model for two things. The first is the optional draft-a-rule-with-AI feature. It receives the rule description you type, your store’s currency, whether your store has any B2B companies (yes or no, if you allowed it), and, if you loaded your checkout’s shipping rates, their names, an example price for each, and the country and postal code they were loaded for. It receives no customer or order data, and no company, product, or collection details from your store. Our support assistant also runs on it, so the text of a support request, including anything you put in it, is sent to Anthropic to draft a reply.
- Functional Software, Inc. (Sentry) — error monitoring. When the App’s server hits an unexpected error, it sends Sentry a report: the error message and where in our code it happened, the request’s method and page address, a few technical request headers (such as the browser’s user-agent and language), and details of our own server, such as its software versions. The page address is reduced the same way as in our server logs (see “Server logs” above). Cookies and request bodies are dropped. Access tokens, signatures, email addresses, and other values that look like secrets are replaced. An error message can still quote other data the App was handling when the error happened, such as a shop’s domain or text typed into the App. Our server logs themselves are not sent to Sentry. Sentry stores reports in the United States and keeps them for 30 days.
- Google LLC (Google Workspace) — hosts our support mailbox, [email protected]. Email you send us, our replies, and reply drafts are stored there.
- Backblaze, Inc. (B2 Cloud Storage) — stores encrypted backups of our support desk. We encrypt each backup with a key we hold before uploading it, and each one is deleted within 7 days.
- Transactional email. The automatic note confirming we received a help-form message uses Resend. The App itself does not currently send transactional email. If an email-alert channel ships in a future release, we will update this policy to name the chosen email provider before enabling it.
How data is protected
- Encryption in transit. All traffic to the App and to our sub-processors is served over HTTPS/TLS.
- Encryption at rest. The managed PostgreSQL database and the underlying App Platform storage — both DigitalOcean — encrypt data at rest.
- Access control. Production database and hosting credentials are held only by Smith Crafts LLC operators, are stored as hosting-provider secrets rather than in source control, and are rotated on personnel change.
- Minimum-necessary scope. The App asks for two scopes at install. Its optional scopes are requested only when you use a feature that needs them, and only after you approve Shopify’s prompt; you can remove them in Shopify at any time. We do not hold any Shopify scope we do not use in code.
Data retention & deletion
We retain installation, session, discount-program, activation, alert, AI-draft, AI-usage, checkout-check, daily rate-check, support-submission, review-prompt, and instrumentation records while the App is installed. When you uninstall, Shopify sends the App’s app/uninstalled webhook and we delete the shop’s Session rows (including the merchant-staff fields listed above) as soon as Shopify confirms the App was removed. If Shopify doesn’t confirm the removal right away, the Session rows stay until the shop/redact deletion below. About 48 hours later Shopify sends the mandatory shop/redact webhook; at that point the App deletes every remaining record for the shop across all enumerated tables above. For help-form messages, that removes only the App’s copy. It does not reach our support desk, support inbox, or mailbox (see “Support requests”); email us to have those deleted. Once the deletion succeeds, what the App’s database keeps about your shop is audit metadata: the record of each shop/redact request, which names the shop by a one-way hash (see “Privacy-webhook audit log”), and the audit records of any privacy webhooks Shopify sends for the shop afterwards. If the final clean-up of the shop’s other audit records fails, some of those records can also remain; they follow the retention described under “Privacy-webhook audit log”. Our hosting provider’s server logs are separate (see “Server logs”). Error reports sent to Sentry are separate too: Sentry keeps them for 30 days (see “Sub-processors”). If a deletion fails part-way, the App keeps the request, and our policy is to retry it automatically: about 30 minutes later at first, then waiting twice as long after each failure, up to once a day, until it succeeds. These retries run on the App’s scheduled jobs, so the timings are what we aim for, not a guarantee. A request still not completed 24 hours after it arrived is flagged for our attention while the retries continue. If the App still holds an access token for your store when Shopify’s deletion request arrives, for example because you reinstalled and opened the App or because Shopify couldn’t confirm the uninstall, the App first checks with Shopify (about every 30 minutes) whether it is still installed. If Shopify says it is installed, the App does not run that deletion and flags the request for our attention. Otherwise the deletion runs once Shopify has rejected the App’s access twice, at least 25 minutes apart, or has refused the check in the same way for seven days, for example because the store was closed. If Shopify can’t be reached, the App asks again later, on the retry schedule above. The same applies if you reinstall and open the App while a failed deletion is still being retried. If you uninstall the App again, the deletion Shopify sends then also closes the held request once that deletion succeeds.
Names the App looks up in your store (companies, locations, collections, products) are not retained, except where one appears in the title or message of your draft or rule. That text is kept in our database with your AI drafts, discount rules, and publish history while the App is installed, and is deleted from our database with everything else on shop/redact. IDs you picked for a rule are kept with your discount programs, AI drafts, and publish history while the App is installed, and are deleted with everything else on shop/redact.
When Shopify sends a customers/redact webhook, the App deletes the records it holds for the orders Shopify lists, then acknowledges the request. If the deletion fails, the App asks Shopify to send it again and also retries it itself, as described above. Today there is nothing to delete: the App does not store data keyed to individual customers, and it does not currently collect order records. A company or location ID you chose for a rule is part of your discount configuration, not a customer record; edit or delete the rule to remove it. The audit record (see “Privacy-webhook audit log”) shows whether each request was received, failed, or completed.
When Shopify sends a customers/data_request webhook, the App looks up any records it holds for the orders Shopify lists and replies to Shopify with what it found, together with a description of the kinds of data the App keeps for a shop. The App does not store customer names, addresses, email addresses, phone numbers, IP addresses, or order contents, and it does not currently collect order records, so today that lookup finds nothing. The only customer-related text the App can hold is what you type yourself into a rule, an AI request, or a support message (for example a company’s name); you can edit or delete it, or ask us to. Merchants may also email us at the address below to request deletion or a copy of the data we hold for the shop.
Your rights
Depending on your jurisdiction (including the EU/UK GDPR and the California CCPA/CPRA), you may have rights to access, correct, port, or delete data we hold that relates to you. Merchants can exercise these rights via the Shopify privacy webhooks described above or by emailing [email protected]. We respond within the timeframes required by applicable law. End customers of a merchant’s store should direct requests to the merchant, who is the data controller for their store’s customer data; we act as a processor on the merchant’s behalf.
International transfers
The App is operated from the United States. If you access it from elsewhere, your data may be transferred to and processed in the U.S. under the safeguards required by applicable law.
Changes
We may update this policy; material changes will be reflected by the effective date above and, where features that change data handling are added, in a same-release update. Continued use of the App after an update constitutes acceptance of the revised policy.
Contact
Smith Crafts LLC · Data-protection contact: [email protected].