Abonnement

Abonnementet og betalingen hos Stripe.11 operasjoner

Hoder på hvert svar

Hvert svar på denne siden har disse hodene.
X-Trace-Id
— The W3C trace id of this request — the same id in the log and in the traceId of a problem. Quote it when reporting.
Server-Timing
— Where the time went: total, db;dur=…;desc="N queries", and every step the handler named (ADR-163).
X-Diagnostics
— Only when the request asked with X-Diagnostics: 1 or ?diagnostics=1: the same breakdown as one JSON object, with the trace id (ADR-163).

Operasjoner

GET/api/v1/plansTrenger ingen sesjon

List the plans with their names, prices and credits

Public: what the landing page and /priser show, read from the same rows the admin edits and checkout uses, fewest credits first. Says nothing about any household. Cached for five minutes (Cache-Control: public, max-age=300), so a price changed in the admin reaches the pages within that. country (ISO 3166-1 alpha-2, optional) prices the plans for that country: its currency and its list price, the same as in the app stores (ADR-674 (#5142)); priceSet is false for a paid plan not priced there yet. No country, or one Bryti does not sell in, is Norway's prices.

Parametre

NavnHvorTypePåkrevdBeskrivelse
countryquerystring——

Svar

200OK
application/jsonPublicPlanResponse[]
400The request could not be read as the route needs it: a body that is not the documented shape (a required field left out, a null where none is allowed, a value too long for its field), a parameter that does not parse, or a NUL character anywhere (#3540, #3541, #3543). Code validation_failed or value_too_long.
application/problem+jsonProblemDetails
426The build named in X-App-Version is below its platform's version floor (ADR-070). Problem type app-version-unsupported; the only way forward is the store. Callers without the header are never turned away.
application/problem+jsonProblemDetails
429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails
Hoder
Retry-After
— Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
503The server is down for maintenance (#4693). Retry-After says when to try again; problem type maintenance. Every call under /api answers this while maintenance mode is on, the version floor included.
application/problem+jsonProblemDetails
Hoder
Retry-After
— Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.

Eksempel

curl \
  "https://bryti.app/api/v1/plans"

Eksempel på svar

200application/json
[
  {
    "code": "string",
    "name": "string",
    "priceMonthMinor": 0,
    "priceCurrency": "string",
    "monthlyCredits": 0,
    "welcomeCredits": 0,
    "purchasable": false,
    "priceSet": true
  }
]
POST/api/v1/billing/appstore/notificationsTrenger ingen sesjon

Receive an App Store Server Notification

Not for the apps: public and unauthenticated, called by Apple with App Store Server Notifications V2. The signed payload is verified against Apple's root certificate (the x5c chain to Apple Root CA G3, ES256) and the app's bundle id; a bad one is a 400 (code billing_webhook_rejected). Applies subscriptions bought, renewed, changed, failing, expired and refunded, and credit packs bought and refunded. Safe to replay: the same notification twice changes nothing the second time, and an older state arriving after a newer one is ignored. 503 (code billing_disabled) when the App Store is not switched on here.

Parametre

Ingen parametre

Svar

200OK
400Bad Request
application/problem+jsonProblemDetails
426The build named in X-App-Version is below its platform's version floor (ADR-070). Problem type app-version-unsupported; the only way forward is the store. Callers without the header are never turned away.
application/problem+jsonProblemDetails
429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails
Hoder
Retry-After
— Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
503Service Unavailable
application/problem+jsonProblemDetails

Eksempel

curl \
  -X POST \
  "https://bryti.app/api/v1/billing/appstore/notifications"
POST/api/v1/billing/play/notificationsTrenger ingen sesjon

Receive a Google Play real-time developer notification

Not for the apps: public and unauthenticated, called by Google Cloud Pub/Sub's authenticated push with a Play real-time developer notification. The Bearer token is verified as Google's OIDC token for this URL and the push service account, and the package name must be the app's; a bad one is a 400 (code billing_webhook_rejected). Every subscription notification is answered by asking Play for the subscription's state, so what is applied is Play's own word. Applies subscriptions and credit packs bought, renewed, changed, on hold, expired, revoked and refunded. Safe to replay. 503 (code billing_disabled) when Play is not switched on here.

Parametre

Ingen parametre

Svar

200OK
400Bad Request
application/problem+jsonProblemDetails
426The build named in X-App-Version is below its platform's version floor (ADR-070). Problem type app-version-unsupported; the only way forward is the store. Callers without the header are never turned away.
application/problem+jsonProblemDetails
429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails
Hoder
Retry-After
— Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
503Service Unavailable
application/problem+jsonProblemDetails

Eksempel

curl \
  -X POST \
  "https://bryti.app/api/v1/billing/play/notifications"
POST/api/v1/billing/webhookTrenger ingen sesjon

Receive a billing event from Stripe

Not for the apps: public and unauthenticated, verified by the Stripe-Signature header over the raw body (#603); a bad signature is a 400 (code billing_webhook_rejected). Applies checkout completed, subscription changed or deleted, and payment failed. Safe to replay: the same event twice converges on the same state.

Parametre

Ingen parametre

Svar

200OK
400Bad Request
application/problem+jsonProblemDetails
426The build named in X-App-Version is below its platform's version floor (ADR-070). Problem type app-version-unsupported; the only way forward is the store. Callers without the header are never turned away.
application/problem+jsonProblemDetails
429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails
Hoder
Retry-After
— Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
503The server is down for maintenance (#4693). Retry-After says when to try again; problem type maintenance. Every call under /api answers this while maintenance mode is on, the version floor included.
application/problem+jsonProblemDetails
Hoder
Retry-After
— Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.

Eksempel

curl \
  -X POST \
  "https://bryti.app/api/v1/billing/webhook"
GET/api/v1/households/{householdId}/billing

Read the household's plan, billing status and the plans it could buy

Any member. PaymentsEnabled is false when no provider keys are configured — the apps then hide the upgrade buttons. CanManage means a provider-side customer exists to open the portal for.

Parametre

NavnHvorTypePåkrevdBeskrivelse
householdIdpathstring (uuid)Påkrevd—

Svar

200OK
application/jsonBillingStatusResponse
401No session, or the session is no longer valid.
application/problem+jsonProblemDetails
404Not Found
application/problem+jsonProblemDetails
426The build named in X-App-Version is below its platform's version floor (ADR-070). Problem type app-version-unsupported; the only way forward is the store. Callers without the header are never turned away.
application/problem+jsonProblemDetails
429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails
Hoder
Retry-After
— Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
503The server is down for maintenance (#4693). Retry-After says when to try again; problem type maintenance. Every call under /api answers this while maintenance mode is on, the version floor included.
application/problem+jsonProblemDetails
Hoder
Retry-After
— Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.

Eksempel

curl -b "bryti_session=…" \
  "https://bryti.app/api/v1/households/3fa85f64-5717-4562-b3fc-2c963f66afa6/billing"

Eksempel på svar

200application/json
{
  "paymentsEnabled": false,
  "planCode": "string",
  "planName": "string",
  "pendingPlanCode": "string",
  "status": "string",
  "canManage": false,
  "plans": [
    {
      "code": "string",
      "name": "string",
      "priceMonthMinor": 0,
      "priceCurrency": "string",
      "monthlyCredits": 0,
      "purchasable": false,
      "current": false,
      "pending": false,
      "priceSet": true
    }
  ],
  "channel": "None"
}
POST/api/v1/households/{householdId}/billing/checkout

Start a hosted checkout for a plan and get the URL to send the caller to

Adults only; a Junior member gets 403. ReturnUrl must be an absolute http(s) URL; the provider sends the caller back to it with ?checkout=success or ?checkout=cancelled. 400 (code start_now_required) unless StartNow is true — the member ticked «start now», so a withdrawal within the 14 days pays for the days used (#3737); the yes is stored with the subscription when the checkout completes. 400 for an unknown plan or a plan that cannot be bought online. 409 (code already_subscribed) when the household already has a paid subscription — refetch the billing status and change plan from the portal instead (#3577). 503 (code billing_disabled) when online payments are switched off in this environment (ADR-026). 403 (code email_not_confirmed) when the caller's own e-mail address has not been confirmed — the receipts go there (ADR-290). 403 (code country_not_supported) when the household's country is not one where Bryti takes payments yet; the billing status then says paymentsEnabled false and no plan is purchasable (#4993). Outside Norway the session charges the household's own currency at the country's list price (ADR-677 (#5151)): 409 (code price_not_set_for_country) when that price is not set, or the Stripe price holds no currency option at that amount.

Parametre

NavnHvorTypePåkrevdBeskrivelse
householdIdpathstring (uuid)Påkrevd—

Forespørselskropp

application/jsonPåkrevdStartCheckoutRequest

Svar

200OK
application/jsonRedirectResponse
400Bad Request
application/problem+jsonProblemDetails
401No session, or the session is no longer valid.
application/problem+jsonProblemDetails
403Forbidden
application/problem+jsonProblemDetails
409Conflict
application/problem+jsonProblemDetails
426The build named in X-App-Version is below its platform's version floor (ADR-070). Problem type app-version-unsupported; the only way forward is the store. Callers without the header are never turned away.
application/problem+jsonProblemDetails
429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails
Hoder
Retry-After
— Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
503Service Unavailable
application/problem+jsonProblemDetails

Problemkoder

`code` i problemkroppen er den du forgreiner på. `detail` er engelsk, skrevet for loggen.

email_not_confirmed
— Bekreft e-posten din før du betaler.
price_not_set_for_country
— Betalte planer er ikke tilgjengelige i landet deres ennå.
start_now_required

Eksempel

curl -b "bryti_session=…" \
  -X POST \
  "https://bryti.app/api/v1/households/3fa85f64-5717-4562-b3fc-2c963f66afa6/billing/checkout" \
  -H "Content-Type: application/json" \
  -d '{"planCode":"string","returnUrl":"string","startNow":false}'

Eksempel på svar

200application/json
{
  "url": "string"
}
POST/api/v1/households/{householdId}/billing/preview

Preview what changing to a plan would charge now, give now and charge next

Adults only; a Junior member gets 403. Nothing is charged or changed. A bigger plan applies now and pays the difference for the days left of the period (ADR-392 (#3342)): the amount comes from Stripe's preview of the upcoming invoice when the household pays through Stripe, otherwise from the same proration done here with Estimated set. A smaller plan pays nothing now and applies from the next period. From the free plan the full month is paid now. 400 for an unknown plan or one that cannot be bought online; 503 (code billing_disabled) when online payments are switched off. Amounts are in the household's own currency at the country's list price (ADR-677 (#5151)); 409 (code price_not_set_for_country) when the plan has no price there yet.

Parametre

NavnHvorTypePåkrevdBeskrivelse
householdIdpathstring (uuid)Påkrevd—

Forespørselskropp

application/jsonPåkrevdBillingPreviewRequest

Svar

200OK
application/jsonBillingPreviewResponse
400Bad Request
application/problem+jsonProblemDetails
401No session, or the session is no longer valid.
application/problem+jsonProblemDetails
403Forbidden
application/problem+jsonProblemDetails
404Not Found
application/problem+jsonProblemDetails
409Conflict
application/problem+jsonProblemDetails
426The build named in X-App-Version is below its platform's version floor (ADR-070). Problem type app-version-unsupported; the only way forward is the store. Callers without the header are never turned away.
application/problem+jsonProblemDetails
429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails
Hoder
Retry-After
— Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
503Service Unavailable
application/problem+jsonProblemDetails

Problemkoder

`code` i problemkroppen er den du forgreiner på. `detail` er engelsk, skrevet for loggen.

price_not_set_for_country
— Betalte planer er ikke tilgjengelige i landet deres ennå.

Eksempel

curl -b "bryti_session=…" \
  -X POST \
  "https://bryti.app/api/v1/households/3fa85f64-5717-4562-b3fc-2c963f66afa6/billing/preview" \
  -H "Content-Type: application/json" \
  -d '{"planCode":"string"}'

Eksempel på svar

200application/json
{
  "currentPlanCode": "string",
  "planCode": "string",
  "kind": "NewSubscription",
  "dueNowMinor": 0,
  "currency": "string",
  "daysLeft": 0,
  "periodDays": 0,
  "creditsNow": 0,
  "creditsUsed": 0,
  "creditsLeftAfter": 0,
  "nextPaymentAt": "2026-09-07T16:30:00Z",
  "nextPaymentMinor": 0,
  "appliesAt": "2026-09-07T16:30:00Z",
  "estimated": false,
  "canManage": false
}
POST/api/v1/households/{householdId}/billing/portal

Open the provider's billing portal and get the URL to send the caller to

Adults only; a Junior member gets 403. For managing or cancelling the subscription. 400 when the household has not paid online yet; 503 (code billing_disabled) when online payments are switched off.

Parametre

NavnHvorTypePåkrevdBeskrivelse
householdIdpathstring (uuid)Påkrevd—

Forespørselskropp

application/jsonPåkrevdOpenPortalRequest

Svar

200OK
application/jsonRedirectResponse
400Bad Request
application/problem+jsonProblemDetails
401No session, or the session is no longer valid.
application/problem+jsonProblemDetails
426The build named in X-App-Version is below its platform's version floor (ADR-070). Problem type app-version-unsupported; the only way forward is the store. Callers without the header are never turned away.
application/problem+jsonProblemDetails
429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails
Hoder
Retry-After
— Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
503Service Unavailable
application/problem+jsonProblemDetails

Eksempel

curl -b "bryti_session=…" \
  -X POST \
  "https://bryti.app/api/v1/households/3fa85f64-5717-4562-b3fc-2c963f66afa6/billing/portal" \
  -H "Content-Type: application/json" \
  -d '{"returnUrl":"string"}'

Eksempel på svar

200application/json
{
  "url": "string"
}
POST/api/v1/households/{householdId}/billing/store/intent

Get the household's store token before buying a plan or credit pack in the app

Adults only; a Junior member gets 403. Called right before the App Store's or Google Play's purchase sheet opens. Answers the household's store token: pass AccountToken as appAccountToken on iOS and ObfuscatedAccountId as obfuscatedAccountId on Android, so the signed transaction names the household. One token per household, stable across purchases. 400 for a product id that is no plan or active pack on that store. 409 (code already_subscribed) for a plan when the household already pays through Stripe or the other store — one paid plan per household, changed where it was bought. 403 (code country_not_supported) when payments are not open in the household's country. 503 (code billing_disabled) when that store is not switched on here.

Parametre

NavnHvorTypePåkrevdBeskrivelse
householdIdpathstring (uuid)Påkrevd—

Forespørselskropp

application/jsonPåkrevdStoreIntentRequest

Svar

200OK
application/jsonStoreIntentResponse
400Bad Request
application/problem+jsonProblemDetails
401No session, or the session is no longer valid.
application/problem+jsonProblemDetails
403Forbidden
application/problem+jsonProblemDetails
409Conflict
application/problem+jsonProblemDetails
426The build named in X-App-Version is below its platform's version floor (ADR-070). Problem type app-version-unsupported; the only way forward is the store. Callers without the header are never turned away.
application/problem+jsonProblemDetails
429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails
Hoder
Retry-After
— Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
503Service Unavailable
application/problem+jsonProblemDetails

Eksempel

curl -b "bryti_session=…" \
  -X POST \
  "https://bryti.app/api/v1/households/3fa85f64-5717-4562-b3fc-2c963f66afa6/billing/store/intent" \
  -H "Content-Type: application/json" \
  -d '{"channel":"AppStore","productId":"string"}'

Eksempel på svar

200application/json
{
  "accountToken": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "obfuscatedAccountId": "string",
  "productId": "string"
}
POST/api/v1/households/{householdId}/billing/store/verify

Confirm a purchase made in the App Store or Google Play and apply it

Adults only; a Junior member gets 403. Send the App Store's signed transaction (SignedTransaction, its jwsRepresentation) or Play's PurchaseToken with the ProductId. Bryti verifies it with the store, applies it — a plan with more credits applies now, fewer from the next period; a credit pack adds its credits, which carry over — and answers the billing status as it is after. Finish the transaction on the phone only after this answers 200. Safe to repeat for the same purchase (a restore sends every one again): it is applied once. 400 (code store_purchase_invalid) when the proof does not verify, names another product, or names no household. 409 (code store_purchase_elsewhere) when the purchase belongs to another household. 409 (code already_subscribed) when the household already paid for its plan through Stripe or the other store; the first plan is kept. 403 (code store_sandbox_not_allowed) when the purchase was made in the App Store sandbox (TestFlight, App Review) or by a Play licence tester and the platform admin has not allowed test purchases for this household; nothing is applied, so leave the transaction unfinished. 503 (code billing_disabled) when that store is not switched on here.

Parametre

NavnHvorTypePåkrevdBeskrivelse
householdIdpathstring (uuid)Påkrevd—

Forespørselskropp

application/jsonPåkrevdStoreVerifyRequest

Svar

200OK
application/jsonBillingStatusResponse
400Bad Request
application/problem+jsonProblemDetails
401No session, or the session is no longer valid.
application/problem+jsonProblemDetails
403Forbidden
application/problem+jsonProblemDetails
404Not Found
application/problem+jsonProblemDetails
409Conflict
application/problem+jsonProblemDetails
426The build named in X-App-Version is below its platform's version floor (ADR-070). Problem type app-version-unsupported; the only way forward is the store. Callers without the header are never turned away.
application/problem+jsonProblemDetails
429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails
Hoder
Retry-After
— Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
503Service Unavailable
application/problem+jsonProblemDetails

Problemkoder

`code` i problemkroppen er den du forgreiner på. `detail` er engelsk, skrevet for loggen.

store_purchase_elsewhere
— Planen er kjøpt for en annen husholdning. Bytt til den husholdningen for å bruke planen.
store_purchase_invalid
— Kjøpet ditt ble ikke bekreftet hos butikken. Hvis beløpet er trukket, bør du kontakte butikken for å få refusjon.
store_sandbox_not_allowed
— Testkjøp er kun tilgjengelig for godkjente husholdninger.

Eksempel

curl -b "bryti_session=…" \
  -X POST \
  "https://bryti.app/api/v1/households/3fa85f64-5717-4562-b3fc-2c963f66afa6/billing/store/verify" \
  -H "Content-Type: application/json" \
  -d '{"channel":"AppStore","productId":"string"}'

Eksempel på svar

200application/json
{
  "paymentsEnabled": false,
  "planCode": "string",
  "planName": "string",
  "pendingPlanCode": "string",
  "status": "string",
  "canManage": false,
  "plans": [
    {
      "code": "string",
      "name": "string",
      "priceMonthMinor": 0,
      "priceCurrency": "string",
      "monthlyCredits": 0,
      "purchasable": false,
      "current": false,
      "pending": false,
      "priceSet": true
    }
  ],
  "channel": "None"
}
POST/api/v1/households/{householdId}/billing/store/sandbox/reset

Take away the household's App Store sandbox and Play test purchases

Adults only; a Junior member gets 403. For a household the platform admin allowed test purchases for (App Review, TestFlight): a plan bought in the sandbox ends now and is unlinked, so the household is on the default plan and can buy again, and every sandbox credit pack still held is taken back. A paid plan or pack is never touched. Answers the billing status as it is after. Safe to repeat. 403 (code store_sandbox_not_allowed) when the household may not make test purchases. scripts/review-household.mjs --reset calls it every night.

Parametre

NavnHvorTypePåkrevdBeskrivelse
householdIdpathstring (uuid)Påkrevd—

Svar

200OK
application/jsonBillingStatusResponse
401No session, or the session is no longer valid.
application/problem+jsonProblemDetails
403Forbidden
application/problem+jsonProblemDetails
404Not Found
application/problem+jsonProblemDetails
426The build named in X-App-Version is below its platform's version floor (ADR-070). Problem type app-version-unsupported; the only way forward is the store. Callers without the header are never turned away.
application/problem+jsonProblemDetails
429Too many calls in the window; Retry-After says how long.
application/problem+jsonProblemDetails
Hoder
Retry-After
— Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.
503The server is down for maintenance (#4693). Retry-After says when to try again; problem type maintenance. Every call under /api answers this while maintenance mode is on, the version floor included.
application/problem+jsonProblemDetails
Hoder
Retry-After
— Seconds to wait when a rate limit answered or the server is down for maintenance, or an HTTP date when the household's AI is paused. Absent when the household's AI quota for the period is used up — that resets by itself.

Problemkoder

`code` i problemkroppen er den du forgreiner på. `detail` er engelsk, skrevet for loggen.

store_sandbox_not_allowed
— Testkjøp er kun tilgjengelig for godkjente husholdninger.

Eksempel

curl -b "bryti_session=…" \
  -X POST \
  "https://bryti.app/api/v1/households/3fa85f64-5717-4562-b3fc-2c963f66afa6/billing/store/sandbox/reset"

Eksempel på svar

200application/json
{
  "paymentsEnabled": false,
  "planCode": "string",
  "planName": "string",
  "pendingPlanCode": "string",
  "status": "string",
  "canManage": false,
  "plans": [
    {
      "code": "string",
      "name": "string",
      "priceMonthMinor": 0,
      "priceCurrency": "string",
      "monthlyCredits": 0,
      "purchasable": false,
      "current": false,
      "pending": false,
      "priceSet": true
    }
  ],
  "channel": "None"
}

Skjema

BillingChannel

Type

Verdier

NoneStripeAppStorePlay

Standard "None"

BillingPlanResponse

FeltTypePåkrevd
codestringPåkrevd
namestringPåkrevd
priceMonthMinorinteger (int32) | nullPåkrevd
priceCurrencystringPåkrevd
monthlyCreditsinteger (int32)Påkrevd
purchasablebooleanPåkrevd
currentbooleanPåkrevd
pendingbooleanPåkrevd
priceSetboolean—

BillingPreviewKind

Type

Verdier

NewSubscriptionUpgradeDowngradeSame

BillingPreviewRequest

FeltTypePåkrevd
planCodestringPåkrevd

BillingPreviewResponse

FeltTypePåkrevd
currentPlanCodestringPåkrevd
planCodestringPåkrevd
kindBillingPreviewKindPåkrevd
dueNowMinorinteger (int32)Påkrevd
currencystringPåkrevd
daysLeftinteger (int32)Påkrevd
periodDaysinteger (int32)Påkrevd
creditsNowinteger (int32)Påkrevd
creditsUsedinteger (int32)Påkrevd
creditsLeftAfterinteger (int32)Påkrevd
nextPaymentAtstring (date-time)Påkrevd
nextPaymentMinorinteger (int32)Påkrevd
appliesAtstring (date-time)Påkrevd
estimatedbooleanPåkrevd
canManagebooleanPåkrevd

BillingStatusResponse

FeltTypePåkrevd
paymentsEnabledbooleanPåkrevd
planCodestringPåkrevd
planNamestringPåkrevd
pendingPlanCodestring | nullPåkrevd
statusstringPåkrevd
canManagebooleanPåkrevd
plansBillingPlanResponse[]Påkrevd
immediateStartConsentAtstring (date-time) | null—
channelBillingChannel—
storeProductsStoreProductResponse[] | null—

OpenPortalRequest

FeltTypePåkrevd
returnUrlstringPåkrevd

ProblemDetails

FeltTypePåkrevd
typestring | null—
titlestring | null—
statusinteger (int32) | null—
detailstring | null—
instancestring | null—
codestring | null—

PublicPlanResponse

FeltTypePåkrevd
codestringPåkrevd
namestringPåkrevd
priceMonthMinorinteger (int32) | nullPåkrevd
priceCurrencystringPåkrevd
monthlyCreditsinteger (int32)Påkrevd
welcomeCreditsinteger (int32)Påkrevd
purchasablebooleanPåkrevd
priceSetboolean—

RedirectResponse

FeltTypePåkrevd
urlstringPåkrevd

StartCheckoutRequest

FeltTypePåkrevd
planCodestringPåkrevd
returnUrlstringPåkrevd
startNowboolean—

StoreChannel

Type

Verdier

AppStorePlay

StoreIntentRequest

FeltTypePåkrevd
channelStoreChannelPåkrevd
productIdstringPåkrevd
storefrontstring | null—

StoreIntentResponse

FeltTypePåkrevd
accountTokenstring (uuid)Påkrevd
obfuscatedAccountIdstringPåkrevd
productIdstringPåkrevd

StoreProductKind

Type

Verdier

PlanCreditPack

StoreProductResponse

FeltTypePåkrevd
kindStoreProductKindPåkrevd
codestringPåkrevd
namestringPåkrevd
creditsinteger (int32)Påkrevd
appStoreProductIdstring | nullPåkrevd
playProductIdstring | nullPåkrevd
purchasablebooleanPåkrevd
currentbooleanPåkrevd

StoreVerifyRequest

FeltTypePåkrevd
channelStoreChannelPåkrevd
productIdstringPåkrevd
signedTransactionstring | null—
purchaseTokenstring | null—