wishlist api

Multi-tenant wishlist intake for Laravel.

Each tenant has a UUID primary key, a unique slug for API resolution, and a dedicated admin console for monitoring email captures and JSON metadata payloads.

Wishlist create

Tenant clients should send a tenant slug header and a JSON body with an email plus optional metadata object.

POST /api/wishlist
X-Tenant-Slug: northwind-store
Content-Type: application/json

{
  "email": "person@example.com",
  "metadata": {
    "campaign": "spring-drop",
    "sku": "SKU-1091",
    "source": "hero-form"
  }
}

Wishlist count

Use the same tenant header to fetch tenant-specific counts without exposing admin routes publicly.

GET /api/wishlist/count
X-Tenant-Slug: northwind-store