Skip to main content

AppBudget

No description

type AppBudget {
appBudgetId: BigInt!
orgId: BigInt!
appId: BigInt!
monthlyLimitCents: BigInt
currentMonthUsageCents: BigInt!
periodStart: DateTime!
createdAt: DateTime!
updatedAt: DateTime!
}

Fields

AppBudget.appBudgetId ● BigInt! non-null scalar

Unique app-budget id (BigInt as a decimal string).

AppBudget.orgId ● BigInt! non-null scalar

Organization that owns the app (BigInt as a decimal string).

AppBudget.appId ● BigInt! non-null scalar

App this budget applies to (BigInt as a decimal string).

AppBudget.monthlyLimitCents ● BigInt scalar

Monthly spend cap in minor currency units (cents) as a BigInt decimal string; null means no cap is configured (unlimited).

AppBudget.currentMonthUsageCents ● BigInt! non-null scalar

Spend so far in the current monthly period, in minor currency units (cents) as a BigInt decimal string. Resets when periodStart rolls over to a new month.

AppBudget.periodStart ● DateTime! non-null scalar

Start of the current monthly budget period (ISO-8601 UTC timestamp), truncated to the first day of the month.

AppBudget.createdAt ● DateTime! non-null scalar

When the budget was first created (ISO-8601 UTC timestamp).

AppBudget.updatedAt ● DateTime! non-null scalar

When the budget was last updated (ISO-8601 UTC timestamp).

Returned By

appBudget query ● appBudgets query ● setAppBudget mutation