Notify Trial Ending
Emit subscription.trial_will_end event. Called by Restate workflow.
This endpoint is called 3 days before a subscription's trial ends to
notify the customer that their trial is ending soon.
Idempotent: If trial_will_end_notified_at is already set, returns "skipped".
Returns status-based response for workflow orchestration:
- status: "notified" or "skipped"
- subscription_id: The subscription's ID
- reason: Explanation when status is "skipped"
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
subscription_id
account_id
Headers
X-Restate-Secret-Key
X-System-Reason
Response
Successful Response
status
subscription_id
reason
Errors
422
Unprocessable Entity Error