Skip to content

API & Integraties

Externe services

Stripe

Betalingen verlopen via Stripe Checkout.

  • Account: stripe.com — login via 1Password
  • Webhooks: https://api.example.com/webhooks/stripe luistert naar checkout.session.completed en invoice.paid
  • Test mode keys: in .env.staging
  • Productie keys: in 1Password vault "klant-x prod"

Resend (transactional email)

Voor welkomstmails, password resets, en order confirmations.

  • Domein: mail.example.com (DKIM/SPF geverifieerd)
  • Templates: beheerd in Resend dashboard

Interne API endpoints

Als er een eigen backend draait (Supabase Edge Functions / Xano):

POST /api/signup

Maakt een nieuwe gebruiker aan.

json
{
  "email": "user@example.com",
  "password": "...",
  "full_name": "..."
}

POST /api/checkout

Initieert een Stripe Checkout sessie. Vereist auth.

Webhooks

Inkomende webhooks die we afhandelen:

SourceEndpointDoel
Stripe/webhooks/stripeOrder status sync
Supabase/webhooks/authProfile creation bij signup

Rate limits

Houd rekening met:

  • Resend: 100 emails/dag op free tier
  • Stripe API: 100 requests/sec

YoU Define, We Create.