# Shopify Commerce reference

<!-- prettier-ignore-start -->

Developer reference for `capell-app/shopify-commerce`. Start with the [README](../README.md) for what the extension does and how to install it.

## Package Details

Shopify Commerce is an **Available** Capell package in the **Capell Commerce** product group. It ships as `capell-app/shopify-commerce` and extends these surfaces: admin, console.

- Status: Available
- Tier: paid
- Bundle: commerce
- Composer package: `capell-app/shopify-commerce`
- Namespace: `Capell\ShopifyCommerce`
- Theme key: not applicable

## Technical Shape

### Service providers

- `Capell\ShopifyCommerce\Providers\MigrationMetadataServiceProvider`
- `Capell\ShopifyCommerce\Providers\ShopifyCommerceServiceProvider`
- `Capell\ShopifyCommerce\Providers\AdminServiceProvider`

### Config files

- `packages/shopify-commerce/config/capell-shopify-commerce.php`

### Migrations

- `packages/shopify-commerce/database/migrations/2026_05_22_000001_create_shopify_connections_table.php`
- `packages/shopify-commerce/database/migrations/2026_05_22_000002_create_shopify_oauth_states_table.php`
- `packages/shopify-commerce/database/migrations/2026_05_22_000003_create_shopify_products_table.php`
- `packages/shopify-commerce/database/migrations/2026_05_22_000004_create_shopify_product_variants_table.php`
- `packages/shopify-commerce/database/migrations/2026_06_01_000001_create_shopify_customers_table.php`
- `packages/shopify-commerce/database/migrations/2026_06_18_000001_create_shopify_webhook_events_table.php`
- `packages/shopify-commerce/database/migrations/2026_07_12_000001_add_processing_state_to_shopify_webhook_events.php`
- `packages/shopify-commerce/database/migrations/2026_09_29_120000_remove_implicit_timestamp_updates_from_shopify_commerce.php`
- `packages/shopify-commerce/database/migrations/2026_10_23_000001_add_shopify_sync_dispatch_receipts.php`
- `packages/shopify-commerce/database/migrations/2026_11_03_000001_add_shopify_webhook_ordering_and_currency.php`
- `packages/shopify-commerce/database/migrations/2026_11_06_000001_add_shopify_webhook_body_digest.php`
- `packages/shopify-commerce/database/migrations/2026_11_06_000002_create_shopify_customer_redactions.php`
- `packages/shopify-commerce/database/migrations/2026_11_06_000003_add_shopify_stale_prices.php`
- `packages/shopify-commerce/database/migrations/2026_11_06_000004_add_shopify_redaction_and_bulk_currency.php`
- `packages/shopify-commerce/database/migrations/2026_11_06_000005_add_currency_verification_to_shopify_connections.php`
- `packages/shopify-commerce/database/migrations/2026_11_06_000006_add_shopify_installation_generation.php`
- `packages/shopify-commerce/database/migrations/2026_11_06_000007_sanitize_shopify_diagnostics_and_track_bulk_generation.php`
- `packages/shopify-commerce/database/migrations/2026_11_06_000008_minimise_stored_shopify_webhook_payloads.php`
- `packages/shopify-commerce/database/migrations/2026_11_06_000009_deduplicate_shopify_redaction_identities.php`
- `packages/shopify-commerce/database/migrations/2026_11_06_000010_scope_shopify_mirrors_to_installations.php`
- `packages/shopify-commerce/database/migrations/2026_11_06_000011_scope_shopify_webhook_receipts_to_installations.php`
- `packages/shopify-commerce/database/migrations/2026_11_06_000012_bind_shopify_redactions_to_closed_installations.php`
- `packages/shopify-commerce/database/migrations/2026_11_17_000001_move_shopify_webhook_events_to_core.php`

### Settings migrations

- `packages/shopify-commerce/database/settings/2026_05_22_000001_create_shopify_commerce_settings.php`

### Settings classes

- `ShopifyCommerceSettings`

### Models

- `ShopifyConnection`
- `ShopifyCustomer`
- `ShopifyOAuthState`
- `ShopifyProduct`
- `ShopifyProductDeletion`
- `ShopifyProductVariant`
- `ShopifyWebhookReceipt`

### Filament classes

- `ShopifyConnectionPage`
- `ShopifyCommerceSettingsSchema`

### Route files

- `packages/shopify-commerce/routes/oauth.php`

### Events

- `ShopifyCustomerDataRequested`
- `ShopifyCustomerRedacted`
- `ShopifyCustomerSynced`
- `ShopifyIdentityRehashRequested`
- `ShopifyShopRedacted`

### Actions

- `BuildShopifyCatalogThemeDataAction`
- `BuildShopifyConnectionSummaryAction`
- `ContinueShopifyProductBulkSyncAction`
- `DispatchShopifyProductSyncAction`
- `FetchShopifyProductAction`
- `ImportShopifyProductBulkSyncAction`
- `InvalidateShopifyProductSearchCacheAction`
- `PersistShopifyProductAction`
- `PollShopifyProductBulkSyncAction`
- `QueueShopifyProductSyncAction`
- `ReadShopifyProductBulkJsonlAction`
- `SanitizeShopifySyncErrorAction`
- `SearchShopifyProductsAction`
- `StartShopifyProductBulkSyncAction`
- `SyncShopifyProductsAction`
- `BuildShopifyCustomerPrivacyExportAction`
- `EraseShopifyCustomerPrivacyDataAction`
- `FetchShopifyCustomerAction`
- `RedactShopifyCustomerAction`
- `RehashShopifyIdentitiesAction`
- `ResolveShopifyPrivacyRecordIdsAction`
- `ShopifyCustomerFields`
- `ShopifyCustomerIdentity`
- `SyncShopifyCustomersAction`
- `UpsertShopifyCustomerAction`
- `ExecuteShopifyAdminGraphqlAction`
- `InstallShopifyCommercePackageAction`
- `InstallShopifyCommercePermissionsAction`
- `BuildShopifyAuthorizeUrlAction`
- `ConnectShopifyStoreAction`
- `CreateShopifyOAuthStateAction`
- `DisconnectShopifyStoreAction`
- `ExchangeShopifyAuthorizationCodeAction`
- `PruneExpiredShopifyOAuthStatesAction`
- `ValidateShopifyHmacAction`
- `ValidateShopifyOAuthStateAction`
- `ValidateShopifyShopDomainAction`
- `VerifyShopifyConnectionTokenAction`
- `PrepareShopifyScreenshotStateAction`
- `RedactShopifyShopAction`
- `ResolveShopifyShopCurrencyAction`
- `ShopifyClosedInstallations`
- `ShopifyInstallation`
- `ApplyShopifyWebhookReceiptAction`
- `ConfirmShopifyDestructiveWebhookAction`
- `IngestShopifyWebhookAction`
- `RecordShopifyWebhookReceiptAction`
- `RegisterShopifyWebhookSubscriptionsAction`
- `SelectShopifyWebhookReceiptsAction`
- `ShopifyWebhookShape`
- `ValidateShopifyWebhookHmacAction`

### Data objects

- `ShopifyCallbackQueryData`
- `ShopifyCatalogProductThemeData`
- `ShopifyCatalogSummaryThemeData`
- `ShopifyCatalogThemeData`
- `ShopifyCatalogVariantThemeData`
- `ShopifyConnectionSummaryData`
- `ShopifyPrivacyRecordIdsData`
- `ShopifyProductData`
- `ShopifyProductOptionData`
- `ShopifyProductVariantData`
- `ShopifyTokenExchangeResponseData`
- `ShopifyWebhookDeliveryData`

### Jobs

- `ProcessShopifyWebhookJob`

### Command signatures

- `capell-shopify-commerce:install`
- `capell-shopify-commerce:prune-oauth-states`
- `capell-shopify-commerce:rehash-identities`
- `capell-shopify-commerce:sync`
- `capell-shopify-commerce:sync-customers`
- `capell-shopify-commerce:webhooks:register`

### Manifest action API

- `ingestShopifyWebhook: Capell\ShopifyCommerce\Actions\Webhooks\IngestShopifyWebhookAction`
- `install: Capell\ShopifyCommerce\Actions\InstallShopifyCommercePackageAction`
- `persistShopifyProduct: Capell\ShopifyCommerce\Actions\Catalog\PersistShopifyProductAction`
- `pruneExpiredShopifyOAuthStates: Capell\ShopifyCommerce\Actions\OAuth\PruneExpiredShopifyOAuthStatesAction`
- `syncShopifyCustomers: Capell\ShopifyCommerce\Actions\Customers\SyncShopifyCustomersAction`
- `upsertShopifyCustomer: Capell\ShopifyCommerce\Actions\Customers\UpsertShopifyCustomerAction`

### Scheduled commands

- `capell-shopify-commerce:prune-oauth-states (hourly; package registered)`
- `capell-shopify-commerce:sync --all (everyFifteenMinutes; manifest declared)`

### Console command classes

- `InstallShopifyCommerceCommand`
- `PruneExpiredShopifyOAuthStatesCommand`
- `RegisterShopifyWebhooksCommand`
- `RehashShopifyIdentitiesCommand`
- `SyncShopifyCustomersCommand`
- `SyncShopifyProductsCommand`

### Manifest contributions

- `admin-page: Capell\ShopifyCommerce\Manifest\ShopifyConnectionPageContribution`
- `console-command: Capell\ShopifyCommerce\Manifest\ShopifyCommerceConsoleCommandsContribution`
- `health-check: Capell\ShopifyCommerce\Manifest\ShopifyCommerceHealthContribution`
- `migration: Capell\ShopifyCommerce\Manifest\ShopifyCommerceMigrationsContribution`
- `model: Capell\ShopifyCommerce\Manifest\ShopifyCommerceModelsContribution`
- `route: Capell\ShopifyCommerce\Manifest\ShopifyCommerceRoutesContribution`
- `scheduled-job: Capell\ShopifyCommerce\Manifest\ShopifyOAuthStatePruneScheduleContribution`
- `scheduled-job: Capell\ShopifyCommerce\Manifest\ShopifyProductSyncScheduleContribution`
- `setting: Capell\ShopifyCommerce\Manifest\ShopifyCommerceSettingsContribution`

### Health checks

- `Capell\ShopifyCommerce\Health\ShopifyCommerceHealthCheck`

### Blade views

- `packages/shopify-commerce/resources/views/filament/pages/connection.blade.php`

### Cache tags

- `shopify-commerce`

## Data Model

- Required tables: `shopify_closed_installations`, `shopify_connections`, `shopify_customer_redactions`, `shopify_customers`, `shopify_oauth_states`, `shopify_product_deletions`, `shopify_product_variants`, `shopify_products`, `shopify_webhook_receipts`.
- Protected tables: `shopify_connections`, `shopify_oauth_states`, `shopify_products`, `shopify_product_variants`, `shopify_customers`, `shopify_webhook_receipts`, `shopify_product_deletions`.
- Models: `ShopifyConnection`, `ShopifyCustomer`, `ShopifyOAuthState`, `ShopifyProduct`, `ShopifyProductDeletion`, `ShopifyProductVariant`, `ShopifyWebhookReceipt`.
- Core record references in migrations: `sites via site_id`, `users via user_id`.
- Migration files: `2026_05_22_000001_create_shopify_connections_table.php`, `2026_05_22_000002_create_shopify_oauth_states_table.php`, `2026_05_22_000003_create_shopify_products_table.php`, `2026_05_22_000004_create_shopify_product_variants_table.php`, `2026_06_01_000001_create_shopify_customers_table.php`, `2026_06_18_000001_create_shopify_webhook_events_table.php`, `2026_07_12_000001_add_processing_state_to_shopify_webhook_events.php`, `2026_09_29_120000_remove_implicit_timestamp_updates_from_shopify_commerce.php`, `2026_10_23_000001_add_shopify_sync_dispatch_receipts.php`, `2026_11_03_000001_add_shopify_webhook_ordering_and_currency.php`, `2026_11_06_000001_add_shopify_webhook_body_digest.php`, `2026_11_06_000002_create_shopify_customer_redactions.php`, `2026_11_06_000003_add_shopify_stale_prices.php`, `2026_11_06_000004_add_shopify_redaction_and_bulk_currency.php`, `2026_11_06_000005_add_currency_verification_to_shopify_connections.php`, `2026_11_06_000006_add_shopify_installation_generation.php`, `2026_11_06_000007_sanitize_shopify_diagnostics_and_track_bulk_generation.php`, `2026_11_06_000008_minimise_stored_shopify_webhook_payloads.php`, `2026_11_06_000009_deduplicate_shopify_redaction_identities.php`, `2026_11_06_000010_scope_shopify_mirrors_to_installations.php`, `2026_11_06_000011_scope_shopify_webhook_receipts_to_installations.php`, `2026_11_06_000012_bind_shopify_redactions_to_closed_installations.php`, `2026_11_17_000001_move_shopify_webhook_events_to_core.php`.
- Migration impact: run host migrations through the package install flow before opening package surfaces.
- Deletion/retention behaviour: migrations declare cascade-on-delete relationships and null-on-delete relationships; retention is scheduled through `capell-shopify-commerce:prune-oauth-states` (hourly; registered by the package provider).

<!-- prettier-ignore-end -->