Shop API
Package docs status
Section titled “Package docs status”This page is generated from package source documentation in the Capell packages repository and the checked-in manifest. Source documentation is not distribution status. Before running a Composer command, verify that the exact package and compatible 1.x release are available through public Packagist or the authenticated marketplace account.
| Field | Value |
|---|---|
| Composer package | capell-app/shop-api |
| Package slug | shop-api |
| Product group | Capell Commerce |
| Tier | paid |
| Bundle | commerce |
| Runtime contexts | delivery, shared |
| Capell version | ^1.0 |
| Catalogue role | extension |
| Release channel | Beta |
| Docs source | packages/shop-api/docs |
| Manifest | capell.json |
Sell products from your own app. Look up an offer, add items to a cart and show the exact price. When the buyer places an order, send them to an approved payment page.
Choose one Store, Site, Channel, Market, currency, price list and stock location for each profile. Allow only the credentials that can buy from that profile. Your products can sell without a CMS page. Shop holds the stock while the order waits for payment.
Use a test payment account before taking real orders. Use Shop’s trusted workflows to check payment, ship or hand over goods, and record returns and refunds.
- Price and availability: Check current availability and price on the Capell Marketplace listing.
- Licence: Check the licence terms on the Capell Marketplace listing.
- Requires:
PHP ^8.4,capell-app/core ^1.0.78,capell-app/shop ^1.0.10,laravel/sanctum ^4.0,lorisleiva/laravel-actions ^2.8,spatie/laravel-package-tools ^1.14.1. - Install:
composer require capell-app/shop-api:@beta.
Quick Start
Section titled “Quick Start”- Install the package:
composer require capell-app/shop-api:@beta. - Run
php artisan route:listand verify the package routes are registered.
For Developers
Section titled “For Developers”A trusted integration uses the same Shop quote, reservation, order and payment attempt rules as Storefront. Its credential owns opaque cart handles and order references are available within their originating cart.
Configure
Section titled “Configure”- Configuration files:
config/capell-shop-api.php.
Limits And Pitfalls
Section titled “Limits And Pitfalls”- Install the required Capell packages at the versions in
composer.json:capell-app/core ^1.0.78,capell-app/shop ^1.0.10. - Run migrations before opening package resources or public routes.
- Review middleware, throttling, signatures, and public-output safety in
routes/api.phpbefore exposing routes.
Screens And Workflow
Section titled “Screens And Workflow”
- A host app’s product card and basket built from Shop API responses (frontend).
Install Impact
Section titled “Install Impact”- Required packages:
capell-app/core,capell-app/shop. - Admin navigation: no admin page or resource contribution is declared.
- Admin/editor extensions: none declared.
- Permissions: no package permission declarations or Shield gates detected; host access rules still apply.
- Public routes: loads
routes/api.php; registersShopApiRouteContribution. - Database changes: package migrations are declared.
- Config:
config/capell-shop-api.php. - Settings: no package settings declared.
- Queues or schedules: none declared.
- Cache tags: none declared.
- Commands: none declared.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Likely cause | Check | Fix |
|---|---|---|---|
| Package surface is missing after install | Provider or manifest is not loaded | Confirm capell.json, package composer.json, and provider registration | Reinstall the package, refresh Composer autoload, and clear host caches |
| Admin screen or command fails on missing table | Package migrations have not run | Check the tables listed in Data Model | Run host migrations and rerun the focused package test |
| Route returns unexpected output | Route cache, middleware, or signed URL setup does not match the package route file | Check the route files listed in Technical Shape | Clear route cache and verify middleware before exposing public routes |
Upgrading
Section titled “Upgrading”No manual steps between minor versions.
Read CHANGELOG.md before upgrading.
Next Steps
Section titled “Next Steps”- Package docs
- Overview
- Configuration files:
config/capell-shop-api.php. - Troubleshooting
- Developer reference
- Capell content language plan
- Capell documentation design system
- Capell and package ERD notes
- Related packages: Shop.