Herald
OpenapiExt

Get subscription status for a client app

Returns subscription information for the specified client app. # Authentication Requires valid API Key via X-API-Key header # Realm Isolation The API key must belong to the same realm as the client app. Cross-realm requests will return 403 Forbidden. # Example ```bash curl -X GET \ https://api.example.com/api/ext/subscription/client-app-123 \ -H "X-API-Key: your-api-key" ```

GET
/api/ext/subscription/{clientAppId}

Returns subscription information for the specified client app.

Authentication

Requires valid API Key via X-API-Key header

Realm Isolation

The API key must belong to the same realm as the client app. Cross-realm requests will return 403 Forbidden.

Example

curl -X GET \
  https://api.example.com/api/ext/subscription/client-app-123 \
  -H "X-API-Key: your-api-key"

Authorization

api_key
headerX-API-Key<token>

Client-app API key (third-party external API).

Path Parameters

clientAppId*string

Client app ID

Response Body

Subscription status retrieved

application/json
  1. response

Subscription status response

billingType*string

Billing type snapshot ("recurring" / "non_renewing") when a subscription exists; empty string when has_subscription == false. Lets third-party SDKs distinguish non-renewing subscriptions from billingType.

clientAppId*string

Client app ID

entitlementKey*string

Entitlement key for the subscription

hasSubscription*boolean

Whether the app has an active subscription

paymentProvider*string

Payment provider (stripe, creem, etc.)

status*string

Subscription status

  • "active": Subscription is active and paid
  • "canceled": Subscription was canceled but still active until period end
  • "expired": Subscription has expired
  • "trialing": Free trial period
  • "none": No subscription
Example Request
curl -X GET 'https://example.com/api/ext/subscription/string'
Example Response
{
  "billingType": "string",
  "clientAppId": "string",
  "entitlementKey": "string",
  "hasSubscription": true,
  "paymentProvider": "string",
  "status": "string"
}