API & Integraties
Externe services
Stripe
Betalingen verlopen via Stripe Checkout.
- Account: stripe.com — login via 1Password
- Webhooks:
https://api.example.com/webhooks/stripeluistert naarcheckout.session.completedeninvoice.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:
| Source | Endpoint | Doel |
|---|---|---|
| Stripe | /webhooks/stripe | Order status sync |
| Supabase | /webhooks/auth | Profile creation bij signup |
Rate limits
Houd rekening met:
- Resend: 100 emails/dag op free tier
- Stripe API: 100 requests/sec