Shop reference
3 pages, 56 routes, 48 connections and 0 CLI commands, generated from the declarations of Shop without reading storage or running anything.
Code · 0 files
No ingested source sits in a crate named for this app. Either its crate has not been ingested, or the app's name does not match its crate.
Pages · 22
| Page | View id | Role | Route | Order | Parent | Entity | Navigation |
|---|---|---|---|---|---|---|---|
| Cart | shop.cart | detail | /view/shop/cart/{cart_id} | 0 | Cart | hidden | |
| Dashboard | shop.dashboard | dashboard | /view/shop | 0 | in navigation | ||
| Storefront | shop.item | list | /view/shop/storefront/{shop_id} | 0 | shop.index | Item | hidden |
| New coupon | shop.merchant.coupon.edit | editor | /view/shop/merchant/{shop_id}/coupon/create | 0 | shop.merchant.coupon.index | Coupon | hidden |
| Coupon editor | shop.merchant.coupon.edit | editor | /view/shop/merchant/{shop_id}/coupon/{coupon_code}/edit | 0 | shop.merchant.coupon.index | Coupon | hidden |
| Coupons | shop.merchant.coupon.index | list | /view/shop/merchant/{shop_id}/coupon/list | 0 | shop.merchant.dashboard | Coupon | hidden |
| Customers | shop.merchant.customer.index | list | /view/shop/merchant/{shop_id}/customer/list | 0 | shop.merchant.dashboard | Customer | hidden |
| Customer | shop.merchant.customer.orders | list | /view/shop/merchant/{shop_id}/customer/{customer_ref}/orders | 0 | shop.merchant.customer.index | Order | hidden |
| Merchant dashboard | shop.merchant.dashboard | dashboard | /view/shop/merchant/{shop_id} | 0 | shop.merchant.index | Shop | hidden |
| New shop | shop.merchant.new | editor | /view/shop/merchant/create | 0 | shop.merchant.index | Shop | hidden |
| Shop orders | shop.merchant.order.index | list | /view/shop/merchant/{shop_id}/order/list | 0 | shop.merchant.dashboard | Order | hidden |
| Packing slip | shop.merchant.order.slip | detail | /view/shop/merchant/{shop_id}/order/{order_id}/slip | 0 | shop.merchant.order.index | Order | hidden |
| Plans | shop.merchant.plan.index | list | /view/shop/merchant/{shop_id}/plan/list | 0 | shop.merchant.dashboard | Plan | hidden |
| Products | shop.merchant.product.index | list | /view/shop/merchant/{shop_id}/product/list | 0 | shop.merchant.dashboard | Item | hidden |
| Your orders | shop.order.index | list | /view/shop/orders/{customer_ref} | 0 | Order | hidden | |
| Order | shop.order.item | detail | /view/shop/order/{order_id} | 0 | Order | hidden | |
| Register | shop.pos | editor | /view/shop/merchant/{shop_id}/pos | 0 | shop.merchant.dashboard | Shop | hidden |
| Product | shop.product.item | detail | /view/shop/product/{item_id} | 0 | Item | hidden | |
| New product | shop.product.item.edit | editor | /view/shop/merchant/{shop_id}/product/create | 0 | shop.merchant.dashboard | Item | hidden |
| Product editor | shop.product.item.edit | editor | /view/shop/merchant/{shop_id}/product/{item_id}/edit | 0 | shop.merchant.dashboard | Item | hidden |
| List | shop.index | list | /view/shop/list | 20 | Shop | in navigation | |
| Merchant workspaces | shop.merchant.index | list | /view/shop/merchant | 30 | in navigation |
Connections · 48
Shop.AccessCheck
Read the authenticated account's current durable item ownership. Not a provider payment receipt.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| item_id | string | required | Canonical item to check. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/accessHTTP route
Shop.BuyNow
One-shot purchase of a single item: quotes supplier shipping, creates the order and opens a checkout session. MOVES VALUE.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| item_id | string | optional | Shop item being bought. | |
| quantity | integer | optional | Units to buy. | |
| customer_email | string | optional | Buyer email; receipts and shipping notifications go here. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/buyHTTP route
Shop.CartAdd
Add a line to a server-side per-shop cart. The cart id is the cart identity.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| item_id | string | required | Item to add. | |
| quantity | integer | optional | Units to add. | |
| cart_id | string | optional | Existing cart to append to. Omit to open a new cart. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/cartHTTP route
Shop.CartCheckout
Convert a cart into one multi-line order and open a checkout session. MOVES VALUE.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| cart_id | string | required | Cart to convert. | |
| customer_email | string | optional | Buyer email for receipts. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/cart/checkoutHTTP route
Shop.CartGet
Read a cart and its lines.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| cart_id | string | required | Cart identity from the cart URL. |
- Output keyshop.result
- Classificationunclassified
- GET /shop/cartHTTP route
Shop.CartRemove
Remove one line from a cart.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| cart_id | string | required | Cart to modify. | |
| item_id | string | required | Line item to drop. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/cart/removeHTTP route
Shop.CartSweep
Ops sweep: expire abandoned carts and stale unpaid orders.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| ttl_seconds | integer | optional | Cart age, in seconds, past which it is swept. | |
| order_ttl_seconds | integer | optional | Unpaid-order age, in seconds, past which it is swept. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/cart/sweepHTTP route
Shop.Catalog
List the sellable items of a shop.
- Output keyshop.result
- Classificationunclassified
- GET /shop/catalogHTTP route
Shop.CheckoutSession
Open (or re-open) the payment checkout session for an order. MOVES VALUE.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| order_id | string | required | Order to pay for. | |
| order_access_token | string | optional | Bearer token from the order link; stands in for a session when the buyer is anonymous. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/checkoutHTTP route
Shop.CouponList
List a shop's coupons.
- Output keyshop.result
- Classificationunclassified
- GET /shop/couponsHTTP route
Shop.CouponUpsert
Create or update a coupon. Shop owner only.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| shop_id | string | required | Shop that owns the coupon. | |
| coupon_code | string | required | Redemption code buyers type. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/couponHTTP route
Shop.EntitlementCheck
Does the signed-in account hold access to a resource (e.g. item:{item_id}) through a subscription?
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| resource | string | optional | Resource key a plan unlocks. | |
| shop_id | string | optional | Shop whose plans to consult; derived for item:/plan: keys. |
- Output keyshop.result
- Classificationunclassified
- GET /shop/entitlementHTTP route
Shop.Get
Read one shop by id or slug.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| shop_id | optional |
- Output keyshop.result
- Classificationunclassified
- GET /shop/detailHTTP route
Shop.Inventory
Read stock levels for a shop's items.
- Output keyshop.result
- Classificationunclassified
- GET /shop/inventoryHTTP route
Shop.ItemGet
Read one shop item, with its variants.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| item_id | string | required | Item to read. |
- Output keyshop.result
- Classificationunclassified
- GET /shop/itemHTTP route
Shop.ItemUpsert
Create or update a shop item and its variants. Shop owner only; an existing item cannot move between shops. Flat updates preserve omitted fields. Returns the saved item and its product_url/document_url for navigation.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| shop_id | string | required | Shop that owns the item. | |
| product_group_id | string | optional | Groups size/color variants of one product; items sharing it render as one storefront listing with a variant selector. | |
| variant_label | string | optional | This item's variant name, e.g. 'Black / M'. | |
| more_image_urls | string | optional | Further picture addresses, one per line. When sent, media becomes image_url then these, at most 8. | |
| session_booking_type_id | string | optional | Optional owned appointment type. Empty removes package terms from future purchases. | |
| session_count | integer | optional | Sessions per package: 1 to 1000. | |
| session_cancellation_hours | integer | optional | Whole hours of cancellation notice required to return a session: 0 to 744. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/itemHTTP route
Shop.List
List storefronts. Optional collection {q,sort,page,page_size,status} returns pagination; scope=merchant authorizes candidates before totals. Without collection, legacy limits apply.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| collection | optional | |||
| scope | optional |
- Output keyshop.result
- Classificationunclassified
- GET /shopHTTP route
Shop.ListLedgerItem
Price-and-list one ledger-tracked item (donation intake, fabrication run) in a shop: lists the shop item under the ledger's item id, moves its stock from from_location (default intake:dock) into the shop's stock bucket, and projects the resulting balance into the item counters. Shop owner only.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| shop_id | string | required | Shop to list in. | |
| item_id | string | required | The ledger item ref — becomes the shop item id. | |
| price_minor | string | optional | Listing price in minor units. | |
| from_location | string | optional | Where the stock sits now (default intake:dock). |
- Output keyshop.result
- Classificationunclassified
- POST /shop/list-ledger-itemHTTP route
Shop.MyDownloads
List the signed-in account's purchased downloads, newest first, with their gated download URLs.
- Output keyshop.result
- Classificationunclassified
- GET /shop/my-downloadsHTTP route
Shop.OrderCancel
Cancel an unpaid order.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| order_id | string | required | Order to cancel. | |
| order_access_token | string | optional | Bearer token from the order link. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/order/cancelHTTP route
Shop.OrderClaim
Adopt an order paid as a guest into the signed-in account: the order link's token proves it, an order another account owns is refused, and a paid order's items (downloads, session packages) unlock for the account. Idempotent.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| order_id | string | required | Order to adopt. | |
| order_access_token | string | required | Bearer token from the order link or receipt email. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/order/claimHTTP route
Shop.OrderCreate
Create an order from a line list. MOVES VALUE: the order is the obligation to pay.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| items | array | required | Order lines. Each entry names an item/variant and a quantity. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/orderHTTP route
Shop.OrderGet
Read one order: lifecycle state, lines, discounts and totals.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| order_id | string | required | Order to read. | |
| order_access_token | string | optional | Bearer token from the order link. |
- Output keyshop.result
- Classificationunclassified
- GET /shop/orderHTTP route
Shop.OrderList
List orders for a shop or a buyer.
- Output keyshop.result
- Classificationunclassified
- GET /shop/ordersHTTP route
Shop.OrderQuote
Price a prospective order, including supplier shipping. Reads only -- nothing is created.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| items | array | required | Prospective order lines to price. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/order/quoteHTTP route
Shop.OrderRefund
Refund a paid order, whole or in part. MOVES VALUE and is irreversible. Shop owner only on paid orders (gateway-verified session only; the input `actor` is not an authorization input). With no amount it refunds what is left: the money, the delivered item assets and the stock, and the order becomes refunded. A smaller amount returns only that money, keeps the order paid and adds it to `metadata.refunded_minor`; the refund that brings that total to the order total is the full one. Part refunds are refused for orders paid through an outside provider, which refunds only a whole payment.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| order_id | string | required | Paid order to refund. | |
| amount_minor | integer | optional | Part to refund, in minor units; more than 0 and at most what is left. Omit for the rest. | |
| amount | string | optional | The same part as a decimal in the order's currency; read when amount_minor is absent. | |
| reason | string | optional | Why part of the order is refunded, kept with the refund. | |
| expected_refunded_minor | integer | optional | The order's metadata.refunded_minor when the caller read it. When sent and the stored total differs, nothing is refunded: a form posted twice refunds once. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/order/refundHTTP route
Shop.OrderRefundDecline
Decline a refund request. Shop owner only.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| order_id | string | required | Order whose refund request is declined. | |
| decision_reason | string | optional | Reason shown to the buyer. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/order/refund/declineHTTP route
Shop.OrderRefundRequest
Buyer-side request for a refund. Records the ask; the owner decides.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| order_id | string | required | Order the buyer wants refunded. | |
| customer_ref | string | optional | Buyer email or peer id. | |
| order_access_token | string | optional | Bearer token from the order link. | |
| reason | string | optional | Why the buyer is asking. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/order/refund/requestHTTP route
Shop.PaymentWebhook
Payment-provider callback. MOVES VALUE: this is what flips an order to paid and credits item assets to the buyer. Signature-verified; not an agent-facing call.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| raw_body | string | required | Verbatim provider request body, for signature checks. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/payment/webhookHTTP route
Shop.PlanGet
Read one recurring plan.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| plan_id | optional | |||
| shop_id | optional |
- Output keyshop.result
- Classificationunclassified
- GET /shop/planHTTP route
Shop.PlanList
List a shop's open recurring plans.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| shop_id | required |
- Output keyshop.result
- Classificationunclassified
- GET /shop/plansHTTP route
Shop.PlanUpsert
Create or update a recurring plan. Shop owner only. Price edits apply to new subscribers; existing subscriptions keep the terms they signed up at.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| shop_id | string | required | Shop selling the plan. | |
| plan_id | optional | |||
| name | string | optional | Plan name. | |
| amount_minor | integer | optional | Price per period in MINOR units (cents for USD). 29500 is $295.00. | |
| price | string | optional | The same price as a decimal in the plan's currency; read when amount_minor is absent. | |
| status | string | optional | An archived plan takes no new subscribers; its subscribers keep it. | active, archived |
| interval | string | optional | day, week, month, year | |
| trial_days | integer | optional | Free days before the first charge. | |
| entitlements | array | optional | Resource keys the plan unlocks, e.g. item:{item_id} for a protected download. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/planHTTP route
Shop.PosSale
Record an in-person point-of-sale sale. MOVES VALUE. Shop owner only.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| shop_id | string | optional | Shop making the sale. | |
| items | array | optional | Sold lines. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/posHTTP route
Shop.ProductionAcceptance
Build the read-only production-readiness receipt (schema cre8.shop.production-acceptance.v1, no secrets) from a shop's catalog, domain, payment and supplier evidence. Writes nothing. Shop owner only.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| shop_id | string | required | Receiving shop. |
- Output keyshop.result
- Classificationunclassified
- GET /shop/production-acceptanceHTTP route
Shop.SessionPackageServices
List the shop owner's appointments for configuring a session package.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| shop_id | string | optional | Owned shop to configure. |
- Output keyshop.result
- Classificationunclassified
- GET /shop/session-package-servicesHTTP route
Shop.SessionPackages
Read session packages from the authenticated customer’s settled purchases.
- Output keyshop.result
- Classificationunclassified
- GET /shop/session-packagesHTTP route
Shop.Status
Shop app health and counters.
- Output keyshop.result
- Classificationunclassified
- GET /shop/statusHTTP route
Shop.Subscribe
Open a hosted checkout that starts a recurring subscription for the signed-in account. MOVES VALUE every period until cancelled. Returns the existing subscription instead when one is already active.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| plan_id | string | optional | Plan to subscribe to. | |
| shop_id | optional | |||
| string | optional | Receipt email to prefill at checkout. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/subscribeHTTP route
Shop.SubscriptionCancel
Cancel at the end of the paid period; access continues until then. Subscriber or shop owner.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| subscription_id | string | required | Subscription to cancel. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/subscription/cancelHTTP route
Shop.SubscriptionGet
Read one subscription and whether it grants access now. Subscriber or shop owner.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| subscription_id | required |
- Output keyshop.result
- Classificationunclassified
- GET /shop/subscriptionHTTP route
Shop.SubscriptionList
List the caller's subscriptions, or every subscription of a shop the caller owns.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| shop_id | optional |
- Output keyshop.result
- Classificationunclassified
- GET /shop/subscriptionsHTTP route
Shop.SubscriptionPortal
Mint the payment provider's customer-portal link (update card, invoices). Subscriber only.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| subscription_id | string | required | Subscription whose billing to manage. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/subscription/portalHTTP route
Shop.SubscriptionResume
Withdraw a scheduled cancellation while the period is still paid. Subscriber or shop owner.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| subscription_id | string | required | Subscription to keep. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/subscription/resumeHTTP route
Shop.SubscriptionSimulate
Drive a preview-rail subscription through one lifecycle step offline (complete_checkout, renew, fail_renewal, recover, end_period, expire_checkout). Shop owner only; never touches a real provider.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| subscription_id | string | required | Preview-rail subscription to advance. | |
| step | string | required | complete_checkout, renew, fail_renewal, recover, end_period, expire_checkout |
- Output keyshop.result
- Classificationunclassified
- POST /shop/subscription/simulateHTTP route
Shop.SyncInventory
Project the shared Inventory ledger's balances at the shop's stock location into the shop's own item counters (only items the ledger holds a balance row for). With no shop reference it sweeps every shop declaring metadata.inventory_location_ref. Shop owner only when a shop is named.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| shop_id | string | optional | Shop to sync. Omit to sweep every ledger-bound shop. | |
| item_id | string | optional | Sync just this item instead of the whole catalog. |
- Output keyshop.result
- Classificationunclassified
- POST /shop/sync-inventoryHTTP route
Shop.SyncSupplierCatalog
Pull the supplier catalog into a shop's items. With no shop reference it sweeps every supplier-bound shop. Shop owner only when a shop is named.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| shop_id | string | required | Shop to sync. Omit to sweep every supplier-bound shop. | |
| provider_id | string | optional | Supplier provider to pull from. | printful, gelato, printify, fake |
- Output keyshop.result
- Classificationunclassified
- POST /shop/syncHTTP route
Shop.Upsert
Create or update a storefront.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| name | string | required | Storefront display name. |
- Output keyshop.result
- Classificationunclassified
- POST /shopHTTP route
Shop.ViewPatch
Poll-patch payload for the live commerce SSR documents. Read-only view plumbing.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| action | string | optional | Which document slot to patch. | |
| item_id | string | optional | Item the patch is scoped to. | |
| shop_id | string | optional | Shop the patch is scoped to. |
- Output keyshop.result
- Classificationunclassified
- GET /shop/document/patchHTTP route
Other routes · 8
| Method | Path | Kind |
|---|---|---|
| GET | /shop/download/{item_id} | raw handler |
| POST | /shop/download/{item_id} | raw handler |
| GET | /shop/merchant/{shop_id}/customers.csv | raw handler |
| GET | /shop/merchant/{shop_id}/orders.csv | raw handler |
| GET | /view/plan/{plan_id} | raw handler |
| GET | /view/shop/merchant | raw handler |
| GET | /view/shop/merchant/{shop_id} | raw handler |
| GET | /view/subscription/{subscription_id} | raw handler |
Schema and data model
Declared storage and kinds. Linked kinds open their app pages.
- Authoritysql_compat
- Preferred truthsql_compat
- App ownerShop
- SQL projectionlegacy_truth_until_hyper_model · DDL declarations: 16
- None declared.
- None declared.
- None declared.
- None declared.
- None declared.
- warningApp still declares SQL DDL without a declared Hyper graph model. (sql_without_hyper_model)
| Table |
|---|
| shop_runtime |
| shop_item_runtime |
| shop_order_runtime |
| shop_order_item_runtime |
| shop_item_asset_claim_runtime |
| shop_coupon_runtime |
| shop_cart_runtime |
| shop_download_blob_runtime |
Capabilities and dependencies
- Account
- Asset
- Payment
- Item
- Protocol
Structure review · 7
- Cart · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)
- Coupon · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)
- Customer · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)
- Item · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)
- Order · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)
- Plan · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)
- Shop · warningThis view's entity kind is absent from the app's declared model; model discovery may be incomplete. (entity_kind_not_declared)