Core GraphQL APIReferenceQueries
Billing__subscription
Current PGW subscription period (start/end) for the tenant, or null when none exists. Requires a signed-in staff user. Needs the `billing__Checkout` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).
QUERY
billing__subscription: PgwSubscriptionDtoCurrent PGW subscription period (start/end) for the tenant, or null when none exists. Requires a signed-in staff user. Needs the billing__Checkout read permission. Send the x-tenant header (the gateway sets it from your API key).
Returns
- billing__subscription
billingCycleDays?FloatcancelScheduledAt?StringcurrentPeriodEnd*String!currentPeriodStart*String!planKey*String!status*String!Example Request
query Billing__subscription { billing__subscription { billingCycleDays cancelScheduledAt currentPeriodEnd currentPeriodStart planKey status }}{ "data": { "billing__subscription": { "billingCycleDays": 10.5, "cancelScheduledAt": "string", "currentPeriodEnd": "string", "currentPeriodStart": "string", "planKey": "string", "status": "string" } }}