Skip to content
Cartly Developers

Storefront API

Build custom storefronts with the Cartly public REST API. No authentication required — just pass the Shop ID header.

Key Endpoints

All storefront endpoints are public and require the X-Shop-ID header.

GET/shops/{shopId}/products

List all published products with variants, images, and pricing

Parameters

limitintegerMax results (default 20, max 100)
offsetintegerPagination offset
collectionstringFilter by collection slug
POST/shops/{shopId}/cart/add

Add item to cart

Request Body

json
{
  "quantity": 1,
  "variant_id": "uuid"
}