Skip to content

feat(integrations): Shopify app install (OAuth), catalog sync and mandatory webhooks #1266

Open

Description

@gkhngyk

Summary

Connect a Shopify store to a brand and keep its catalog in Ansvisor. This is the first connector on the framework in #1263, and it writes into that issue's catalog model. It covers SHOP-002, SHOP-003 and SHOP-005 of #1265.

Scope

  • App: a public Shopify app owned by the company.
  • Install from two places, one connection:
    • The two entry points are the Shopify App Store and "Connect Shopify" on the Shopping page.
    • Both end in the same OAuth grant and one connection row for the brand.
  • E-commerce brand on install:
    • An install with no Ansvisor account goes through sign-up, then creates the brand.
    • Either way, the brand is marked e-commerce with markBrandAsEcommerce. It sets the industry when the brand has none and turns on Shopping mode (brands.shopping_mode_enabled), so the product views show in the menu.
  • Credentials: the shop's access token is stored through the framework's credential store, never in logs, and is not readable by authenticated.
  • Initial import:
    • Products, variants, images, barcode (GTIN), SKU, price, availability and product URL.
    • Collections become categories.
    • Use the Admin GraphQL API, with bulk operations for large stores.
  • Updates: products/create, products/update and products/delete webhooks with HMAC verification. The framework's daily sync is the backstop.
  • Mandatory webhooks (SHOP-005):
    • app/uninstalled deletes the credentials and stops syncs.
    • customers/data_request and customers/redact are answered. We store no customer data, so there is nothing to return or delete.
    • shop/redact deletes the store's catalog.

Acceptance criteria

  • A development store with 1,000 products imports fully, with images, variants and categories.
  • An edit in Shopify shows in Ansvisor within 5 minutes.
  • Installing from the App Store and from the Shopping page gives the same single connection row.
  • Uninstalling removes the credentials and stops syncs. A webhook with a bad HMAC is rejected.
  • The mandatory webhooks pass Shopify's automated checks.
  • No token appears in logs or is readable by authenticated.

Activity

  1. added
    enhancement
    on Oct 20, 2026
  2. self-assigned this
    on Oct 20, 2026
  3. added
    integrations
    e-commerce
    security-review
    on Oct 20, 2026
  4. cihan-gyk commented on Oct 27, 2026

    @cihan-gyk
    Collaborator

    @gkhngyk A question on Send to CMS → Shopify (#1331), the next connector after WordPress (#1569–#1572). It touches this issue's app.

    Pages would go to the store's blog as draft articles. That uses the Admin GraphQL articleCreate and articleUpdate with isPublished: false, and needs the write_content scope. It also needs read_content, to list the blogs and to read whether an article was published.

    1. One install per brand. Should the CMS send use this issue's app and connection, rather than a second OAuth flow of its own? Then the CMS side only reads the shop's token. That would be from catalog_source_credentials, if the store becomes a shopify catalog source as in 00282. The CMS PRs would build on feat(integrations): Shopify app install (OAuth), catalog sync and mandatory webhooks #1266's install, and wait for it.
    2. The scopes. If yes, can read_content and write_content go into the app's scopes from the start? Then the App Store review (feat(integrations): Shopify App Store listing and review #1269) covers them once. Shopify asks merchants to approve again when scopes are added after install. Send to CMS asks before it writes, and writes drafts only.

    Until you say, I'll do the Framer guide and Wix, and leave Shopify's code until #1266's install is there.

  5. gkhngyk commented on Oct 29, 2026

    @gkhngyk
    ContributorAuthor

    @cihan-gyk Yes, one install per brand: Send to CMS → Shopify uses this issue's app and connection, with no OAuth flow of its own, and reads the shop's token from there. read_content and write_content go into the app's scopes from the start, so the App Store review covers them once. Build the Shopify CMS PRs on top of this install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

e-commerceenhancementintegrationssecurity-review

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions