billing

Verify Store Purchase

Verify a native purchase server-side and provision store-channel entitlement.

Never trusts the client-reported purchase: the transaction is re-verified against Apple/Google before any entitlement is recorded. Blocks the purchase when an active Stripe subscription already provides Pro access (double-billing guard) and when the transaction belongs to another account.

post/api/billing/store/verify

Request

  • Base URL: https://api.retirementlab.app (the document declares no server; this is the origin it was published from)
  • URL: https://api.retirementlab.app/api/billing/store/verify
  • Auth: HTTP bearer

Request body

platform'ios' | 'android' required
product_idstring required
transaction_idstring
signed_transactionstring
purchase_tokenstring

Response

Successful Response

anonymousboolean
account_tierstring
scenario_capinteger
run_capinteger
runs_remaininginteger
billing_enabledboolean
has_stripe_customerboolean
paid_access_expires_atstring date-time
billing_planstring
has_active_subscriptionboolean
can_start_stripe_checkoutboolean
can_start_store_purchaseboolean
trial_eligibleboolean
pro_plan_price_usdinteger
free_n_scenariosinteger
signup_conversionboolean
missing_terms_acceptanceboolean
auth_tokenstring
auth_token_expires_atstring date-time

Changes

No recorded changes to this operation across all 1 revision of this API.