Shopping agents
Shop San Collective through the JSON API.
San Collective is a Shopify-first marketplace surface. Agents can search products, compare options, group carts by merchant, and hand shoppers off to each Shopify store's checkout without scraping merchant storefronts.
Recommended Flow
- Discover capabilities.Read
/api/capabilitiesor/openapi.json. - Start from natural language.POST
/api/assistantwithincludeResults: trueto get a Catalog query, filters, and product results. - Inspect products.Use
/api/productfor fresh gallery, variant, availability, offer, and checkout data. - Compare alternatives.Use
/api/compareand/api/compare-summaryto explain tradeoffs. - Build the cart.POST selected items to
/api/cartwithcheckoutStrategy: "ucp_cart". The response tries merchant-scoped UCP carts first, then falls back to Shopify checkout URLs or cart permalinks. - Hand off checkout.Open each group's
checkoutAction.url, or use/api/checkout-handofffor a single product.
Example Request
POST /api/assistant
{
"message": "camp chairs under $150 available now",
"includeResults": true,
"shipsToCountry": "US",
"limit": 8
}POST /api/cart
{
"checkoutStrategy": "ucp_cart",
"items": [
{
"productId": "gid://shopify/Product/...",
"variantId": "gid://shopify/ProductVariant/...",
"quantity": 1,
"checkoutUrl": "https://merchant.example/cart/123:1",
"seller": { "name": "Merchant", "url": "https://merchant.example" }
}
]
}Commerce Rules
- Use San Collective API responses instead of scraping merchant storefronts.
- San Collective never processes payment and is never merchant of record.
- Multi-store carts produce one Shopify checkout or UCP cart handoff per merchant.
- For humans,
/checkoutprovides a browser-readable merchant checkout review. - Product and offer responses include
refreshedAttimestamps where available.