Admin
Refresh a Stripe subscription from the Stripe API
Fetches the latest state from Stripe for the given subscription and overwrites status, ends_at, stripe_price_id, stripe_product_id, stripe_current_period_start, stripe_cancel_at_period_end, and stripe_latest_invoice_id. Status is only applied for unambiguous Stripe states (active, trialing, canceled, incomplete_expired); anything else (paused, unpaid, past_due, incomplete) leaves the local status untouched and records statusSkipped on the timeline event, since guessing would silently grant or revoke entitlement. Only works for platform=stripe subscriptions that have a stripe_subscription_id. Returns the updated subscription row and a per-field diff of what changed.
post/api/admin/subscriptions/{id}/refresh-from-stripe
Request
- Base URLhttps://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
- URLhttps://api.rewritelifestyle.ai/api/admin/subscriptions/{id}/refresh-from-stripe
- AuthHTTP bearer
Path parameters
idnumber required
Response
unknown required
Example response
{
"success": true,
"subscription": {
"id": 2102,
"ends_at": "2027-04-30T01:59:52.000Z",
"stripe_price_id": "price_xxx"
},
"changes": {
"ends_at": {
"before": null,
"after": "2027-04-30T01:59:52.000Z"
},
"stripe_price_id": {
"before": null,
"after": "price_xxx"
}
}
}Changes
No recorded changes to this operation across all 34 revisions of this API.