Skip to navigation

Read Your Card on File and Introductory Offer

View as Markdown

Return the card paying the caller’s continuing Stripe subscription (brand, last four digits, expiry) and whether Checkout would charge each plan’s introductoryAmount from GET /v1/billing/plans on the first payment, which only an account the App Store does not bill, with no earlier subscription, payment, or unvoided invoice, gets. Read live from Stripe and never stored; 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-LimitintegerOptional

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

X-RateLimit-RemainingintegerOptional

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

X-RateLimit-ResetintegerOptional

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

Response

OK
introductoryOfferEligibleboolean

Whether the caller’s next purchase or upgrade to a plan with an introductoryAmount is charged that amount: true when the catalog offers introductoryAmount, the App Store does not bill the account, and either it has no earlier subscription, payment, or unvoided invoice, or it pays an active subscription on a cheaper sold plan and has never redeemed the introductory discount; false otherwise

cardRevisionstring or nullOptional

Opaque revision of the usable default card shown, for automatic top-up consent.

freeTrialEligiblebooleanOptional

Whether a new Stripe Checkout for a plan with freeTrialDays receives its free trial: the App Store does not bill the account and its Stripe Customer has no prior subscription, successful payment, or non-void invoice. An account without a Stripe Customer is eligible. This is Stripe history eligibility, not a guarantee of one trial across payment providers; plan changes are excluded. Absent on servers released before free-trial eligibility was introduced.

paymentMethodobject or nullOptional

Selected default card: subscription default, otherwise customer invoice default; absent when neither selects a card.

portalAvailablebooleanOptional
Whether the Stripe billing portal is available.

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