Constructors

Methods

  • Create a custom tailored subscription for a business/community. Only accessible by Glitch administrators.

    Type Parameters

    • T

    Parameters

    • community_id: string

      The ID of the community.

    • data: object

      { priceId, paymentMethod, custom_name, limits: { posts, enrichments, invites, ads }, metered_prices: [] }

    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • List all game licenses (Premium/Rental) owned by the current user.

    Type Parameters

    • T

    Parameters

    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • Purchase a permanent license or rent a game title. If a rental was active in the last 7 days, the fee is automatically deducted from the premium price.

    Type Parameters

    • T

    Parameters

    • title_id: string
    • data: object

      { purchase_type: 'premium' | 'rental', payment_method_id: string }

    Returns AxiosPromise<default<T>>

  • Request a refund for a premium purchase.

    Type Parameters

    • T

    Parameters

    • license_id: string

    Returns AxiosPromise<default<T>>

Generated using TypeDoc