Tearleads

GET/organizations/{organizationId}/billing/native/eligibility

Get native store purchase eligibility

Operation organizations.billing.native.eligibility.get

Description

Tells the client whether the caller may buy a native App Store or Google Play subscription for the organization and, when not, gives the reason. Any organization member may call it. The answer is a point-in-time decision; the claim and the store webhooks check eligibility again.

Authentication

Requires a signed-in session: the client sends its session token as a bearer token in the Authorization header.

Parameters

NameInTypeDetails
organizationIdpathstringrequired
  • lowercase UUID v4
storequerystringrequired
  • one of app_store, play_store, test_store

Responses

200 OK

application/jsonOrganizationNativePurchaseEligibilityResponse

Whether the caller may start a native store purchase for the organization, and why not when refused.

  1. object
    2 fields
    • eligiblebooleanrequired
      • always true
    • reasonnullrequired

    Other fields are allowed.

  2. object
    2 fields
    • eligiblebooleanrequired
      • always false
    • reasonstringrequired
      • one of organization_admin_required, personal_organization_required, terminal_organization, stripe_subscription_conflict, existing_subscription_conflict, native_subscription_buyer_mismatch

    Other fields are allowed.

Other responses

StatusMeaningBody
400Bad Request

application/jsonErrorResponse

401Unauthorized

application/jsonSessionFailureResponse

403Forbidden

application/jsonErrorResponse

404Not Found

application/jsonErrorResponse

409Conflict

application/jsonErrorResponse

500Internal Server Error

application/jsonErrorResponse

503Service Unavailable

application/jsonErrorResponse