App install account

The AppInstallAccount type is a field on app install queries that contains the app installer's account details.

Fields

FieldDescription
id Int!The unique identifier of the app installer's account.

App install permissions

The AppInstallPermissions type is a field on app install queries that contains the required and approved scopes for an app installation.

Fields

FieldDescription
approved_scopes [String!]!The scopes approved by the account admin.
required_scopes [String!]!The scopes required by the latest live app version.

App install user

The AppInstallUser type is a field on app install queries that contains the app installer's user details.

Fields

FieldDescription
id IntThe app installer's unique identifier.

App subscription details

🚧

Only available in API versions 2025-01 and later

The AppSubscriptionDetails type is a field on app subscriptions queries. It contains the app installer's account details.

Fields

FieldDescriptionEnum valuesSupported fields
account_id Int!The account's unique identifier.
currency String!The currency used to make the purchase.
days_left Int!The number of days until the subscription ends.
discounts [SubscriptionDiscount!]!The discounts granted to the subscription. discount_model_type SubscriptionDiscountModelType!
discount_type SubscriptionDiscountType!
value Int!
monthly_price Float!The subscription's monthly price (after discounts) in the currency used to make the purchase.
period_type SubscriptionPeriodType!The subscription's billing period frequency. monthly
yearly
plan_id String!The pricing plan's unique identifier.
pricing_version_id Int!The pricing version's unique identifier.
renewal_date String!The subscription's renewal date.
status SubscriptionStatus!The subscription's status.active
inactive

Subscription discount

🚧

Only available in API versions 2025-01 and later

The SubscriptionDiscount type is a field on the app subscription details query that provides details about a single subscription discount.

Fields

FieldDescriptionEnum values
discount_model_type SubscriptionDiscountModelType!The discount's type. nominal: dollar amount of the discount
percent: percentage of the discount
discount_type SubscriptionDiscountType!The discount's frequency. one_time
recurring
value Int!The discount's value as a percent.

App version

The AppVersion type is a field on app install queries that contains details about the app version when it was installed.

Fields

FieldDescription
major Int!The app's major version.
minor Int!The app's minor version.
patch Int!The app's patch version.
text String!The app's version text.
type StringThe app's version type.

Batch extend trial period

The batch_extend_trial_period mutation enables apps monetized by monday to provide trial extensions for up to five accounts through the API.

This mutation will only work for app collaborators and will fail if you do not have the correct permissions.

mutation {
  batch_extend_trial_period (account_slugs: ["test", "monday"], app_id: 12345678, plan_id: "Plan_1", duration_in_days: 21) {
    details {
      account_slug
      reason
      success
    }
    reason
    success
  }
}

Arguments

ArgumentDescription
account_slugs [String!]!The account slug(s) to provide trial extensions for. The maximum is 5.
app_id ID!The unique identifier of the application.
duration_in_days Int!The number of days to extend the trial. The maximum is 365. Please note that you must make multiple calls if the account slugs require different durations.
plan_id String!The unique identifier of the payment plan.

Fields

FieldDescription
details [ExtendTrialPeriod!]The details of the batch operation.
reason StringThe reason the operation resulted in an error. Please note that this will return an empty string if the operation is successful.
success Boolean!The result of the batch operation. Please note that when providing extensions to multiple account slugs, this will return false whenever even one of the operations fails.

Extend trial period

The ExtendTrialPeriod type is a field on the batch_extend_trial_period mutation that provides details about a single operation from the batch.

Fields

FieldDescription
account_slug String!The individual account slug.
reason StringThe reason the single operation resulted in an error. Please note that this will return null if the operation is successful.
success Boolean!The result of the single operation.

Delete marketplace app discount

The DeleteMarketplaceAppDiscount! type returns metadata for recently deleted marketplace app discounts.

Fields

FieldDescription
account_slug String!The account's slug.
app_id Int!The app's unique identifier.

Grant marketplace app discount

The GrantMarketplaceAppDiscount! type returns metadata for recently granted marketplace app discounts.

Fields

FieldDescriptionEnum values
app_id ID!The app's unique identifier.
app_plan_ids [String!]!The app plan IDs.
days_valid Int!The number of days the discount will be valid.
discount Int!The discount's percentage.
is_recurring Boolean!Returns true if the discount is recurring.
period DiscountPeriodThe discount's period. If it returns null, the discount applies to both yearly and monthly plans.MONTHLY
YEARLY

Grant marketplace app discount data

The GrantMarketplaceAppDiscountData! type specifies details about the discount to be granted.

Fields

FieldDescriptionEnum values
app_plan_ids [String!]!The app plan IDs.
days_valid Int!The number of days the discount will be valid.
discount Int!The discount's percentage.
is_recurring Boolean!Whether or not the discount is recurring.
period DiscountPeriodThe discount's period.MONTHLY
YEARLY