Rentals
Stop a rental
Terminate a running pod and settle final usage.
POST
Rental id (
rent_…).stopping initially → stopped once acked.Final settled amount.
Non-zero only if the pod ran <60s and we auto-refunded.
What happens server-side
- Mark
rental.status='stopping', recordstoppedAt=now - Send terminate signal to the upstream provider (fire-and-forget)
- Compute final partial second, debit wallet
- Move reserved amount back to available
- Return 200
status='stopping' → status='stopped'
when the provider confirms.
Auto-stop conditions
The server itself can stop a rental:- Wallet hit $0 — automatic. We send a courtesy email afterward.
- autoStopAfterHours reached — if you set it when creating.
- Provider reports the pod crashed — flips to
failedand refunds.