GET /customer
/api/store/[slug]/customerReturns the authenticated customer's own storefront (Stripe-backed) record for this business, or null when they have none yet.
Customer bearer token requiredHow authentication works
Path parameters
slugstringrequiredBusiness store slug (non-empty string); 404 if no business matches.
Responses
200
The request succeeded.
400
A field failed validation. The response names the fields that failed, not just the first.
404
No such store, or no such record inside it.
What comes back
200: { customer } where customer is { id, businessId, stripeCustomerId, email, createdAt, updatedAt }, or { customer: null } when the authenticated caller has no Stripe-backed record for this business yet. Errors: { error, details? } with 400 or 404.