Skip to navigation

Preview the Next Subscription Charge

View as Markdown

Return what the next invoice of the caller’s renewing Stripe subscription will charge and when, after coupons and credits, so a fully discounted plan reads 0. Read live from Stripe and never stored. 404 when the caller has no renewing Stripe subscription (none, cancelling, or App Store); 503 when Stripe is unavailable.

Authentication

AuthorizationBearer

Your aVenture API key (https://aventure.vc/settings/api-keys) or OAuth access token

Response headers

X-RateLimit-Limitinteger

Requests allowed per client IP in the current rate-limit window.

X-RateLimit-Remaininginteger

Requests left before the tightest applicable rate-limit bucket rejects.

X-RateLimit-Resetinteger

Seconds until the exhausted rate-limit bucket admits another request; 0 when none is exhausted.

Response

OK
amountDuelong

Amount the next invoice will charge in the currency’s minor unit, after discounts, credits, and usage so far; 0 when a discount covers it

chargeAtdatetime
When the next invoice is raised and charged
currencystring
ISO 4217 currency code.
discountlist of objects

Discounts applied to the next invoice; empty when none apply

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
406
Not Acceptable Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error