Back

POST /api/stripe/webhook

Route source: app/api/stripe/webhook/route.ts. Access: Stripe signature.

POST/api/stripe/webhook

Access

Stripe-Signature header

Request

Request body in the handler contract: none.

Synthetic curl example
curl -i -X POST 'https://portal.rfi-irfos.com/api/stripe/webhook' \
  -H "Stripe-Signature: $SYNTHETIC_SIGNATURE" \
  -H 'Content-Type: application/json' \
  --data-binary @request.json

Response

The handler returns JSON. Response fields are defined in the linked route source.

200 400 413 500 503

The linked source file contains the authoritative field validation and response structure.

Error codes

  • 400 · Request or input validation failed
  • 413 · Request body exceeds the size limit
  • 500 · Internal handler error
  • 503 · Service or database is unavailable

Code evidence

app/api/stripe/webhook/route

Local index↑ ↓ · Enter · Esc