Sync checkout session

View as MarkdownOpen in Claude

Verifies a Stripe Checkout Session by session_id and syncs the subscription to the local DB. Use as webhook fallback when the Stripe Webhook is delayed or missing.

Headers

AuthorizationstringRequired

Bearer {access_token}

X-Workspace-IdstringRequired
Workspace UUID

Request

session_id from Stripe success redirect

session_idstringOptional

Response

data: {synced: true}

Errors

400
Bad Request Error
402
Payment Required Error
403
Forbidden Error
422
Unprocessable Entity Error