# Shop API reference

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

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

## Package Details

Shop API is an **Available** Capell package in the **Capell Commerce** product group. It ships as `capell-app/shop-api` and extends these surfaces: delivery, shared.

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

## Technical Shape

### Service providers

- `Capell\ShopApi\Providers\ShopApiMigrationMetadataServiceProvider`
- `Capell\ShopApi\Providers\ShopApiServiceProvider`

### Config files

- `packages/shop-api/config/capell-shop-api.php`

### Migrations

- `packages/shop-api/database/migrations/2026_11_19_000001_create_shop_api_carts_table.php`

### Models

- `ShopApiCart`

### Route files

- `packages/shop-api/routes/api.php`

### Actions

- `CreateShopApiCartAction`
- `FindShopApiOfferAction`
- `ShopApiHostedPayments`

### Data objects

- `ShopApiProfileData`

### Manifest contributions

- `health-check: Capell\ShopApi\Health\ShopApiHealthCheck`
- `migration: Capell\ShopApi\Manifest\ShopApiMigrationsContribution`
- `route: Capell\ShopApi\Manifest\ShopApiRouteContribution`

### Health checks

- `Capell\ShopApi\Health\ShopApiHealthCheck`

## Data Model

- Required tables: `shop_api_carts`.
- Models: `ShopApiCart`.
- Migration files: `2026_11_19_000001_create_shop_api_carts_table.php`.
- Migration impact: run host migrations through the package install flow before opening package surfaces.
- Deletion/retention behaviour: migrations declare restricted-delete relationships; no timed pruning or retention schedule is declared in `capell.json`.

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