Billing
Buy prepaid time with Bitcoin
POST
Starts a one-time Bitcoin payment (on-chain or Lightning) for months of plan, at the plan's monthly price times the months. Send the user to checkoutUrl to pay. Once paid, the time is added to any prepaid time left, and nothing renews. A card subscription the account has ends then, with its unused part refunded. Needs a full-access API key or a signed-in session.
bearerheader
AuthorizationBearer <token>An API key, an OAuth access token, or a signed-in session token.
application/json- body
plan*stringValue in
"lite""standard""pro"months*|||The payment, with its checkout page
application/json- response
id*stringstatus*stringValue in
"pending""processing""paid""underpaid""expired""refunded"plan*months*integeramountCents*integercreatedAt*stringFormat
date-timepaidAt*|Format
date-timeprepaidUntil*|Format
date-timecheckoutUrl*string|nullcurl -X POST 'https://fastwater.app/v1/billing/crypto' \ -H 'Content-Type: application/json' \ -d '{ "plan": "lite", "months": 1}'Example Response
{ "id": "string", "status": "pending", "plan": { "key": "lite", "name": "string", "priceCents": 0, "storageQuotaBytes": 0, "maxActiveTransfers": 0, "maxScreens": 0, "fileRetentionDays": 0, "webdav": true, "priorityDownloads": true, "maxPeople": 0 }, "months": 0, "amountCents": 0, "createdAt": "2019-08-24T14:15:22Z", "paidAt": "2019-08-24T14:15:22Z", "prepaidUntil": "2019-08-24T14:15:22Z", "checkoutUrl": "string"}