Sync subscription by checkout session ID
GET/subscription/sync-by-session
Synchronizes user subscription from Stripe using checkout session ID. Used after successful payment when webhook might be delayed.
Security: Only syncs subscription if checkout session belongs to the current user (verified by matching customer email or stripe_customer_id).
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Subscription synced successfully
Invalid or missing checkout session ID
Unauthorized
Checkout session does not belong to current user
Checkout session not found or has no subscription
Internal server error