ReAI test store · Checkout payments work; test the full flow
ReAI/ commerce
NO
← Learn ReAI
SITE API

Email signup, with consent.

Let visitors ask for news from the business. The Worker submits the signup using a scoped Site credential; consent is stored in the customer register.

Follow the flow

  1. Enter an email and explicitly opt in to news from the named business.
  2. The Worker validates a bounded request and uses newsletter:subscribe. The credential never reaches the browser.
  3. ReAI reuses an existing contact or creates one without overwriting existing customer details.
  4. New and existing contacts receive the same receipt. New consent may start a configured welcome flow; signup creates no discount.

Consent is not a campaign

This API records a newsletter request. New consent may queue a configured welcome flow; signup creates no discount. The business configures sending and handles consent withdrawal. In this demo, contact post+owner@reai.no to withdraw consent.

Repeat without duplicates

Repeated subscriptions are idempotent. The response does not reveal whether the address was already a customer. The checkbox starts unchecked and consent must be true.

No market parameter is needed. The Site credential identifies the owner.
POST /site/v1/newsletter/subscriptions
Authorization: Bearer <server-only Site credential>

{ "email": "you@example.com", "consent": true }

200 { "accepted": true }
Next chapterCheckout with Adyen and multiple payment methods. ↗

Cart

Product subtotal—

Live catalog from ReAI. Payment mode and recipient are shown before checkout.

View cart