admin
Refund Payment
Issue a Stripe refund for a payment.
After refund:
- For subscription payments: cancel subscription and downgrade user to free tier
- For credit pack payments: deduct the corresponding credits from user
Security:
- Uses FOR UPDATE lock to prevent race conditions
- Only allows full refund of remaining credits (no partial refunds)
- Aborts if Stripe subscription cancellation fails
post/admin/payments/{payment_id}/refund
Request
- Base URLhttps://studio-api.meganova.ai (the document declares no server; this is the origin it was published from)
- URLhttps://studio-api.meganova.ai/admin/payments/{payment_id}/refund
- AuthOAuth 2PasswordToken URL: auth/token
Path parameters
payment_idstring uuid required
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 3 revisions of this API.