Skip to main content

marketplace_subs_stubbed

Creates, updates, deletes, gets or lists a marketplace_subs_stubbed resource.

Overview

Namemarketplace_subs_stubbed
TypeResource
Idgithub.apps.marketplace_subs_stubbed

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
idinteger
emailstring
loginstring
marketplace_pending_changeobject
marketplace_purchaseobject
organization_billing_emailstring
typestring
urlstring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_subscription_plan_for_account_stubbedselectaccount_idShows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.

GitHub Apps must use a JWT to access this endpoint. OAuth apps must use basic authentication with their client ID and client secret to access this endpoint.
list_accounts_for_plan_stubbedselectplan_idsort, direction, per_page, pageReturns repository and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.

GitHub Apps must use a JWT to access this endpoint. OAuth apps must use basic authentication with their client ID and client secret to access this endpoint.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idintegeraccount_id parameter
plan_idintegerThe unique identifier of the plan.
directionstringTo return the oldest accounts first, set to asc. Ignored without the sort parameter.
pageintegerThe page number of the results to fetch. For more information, see "Using pagination in the REST API."
per_pageintegerThe number of results per page (max 100). For more information, see "Using pagination in the REST API."
sortstringThe property to sort the results by.

SELECT examples

Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.

GitHub Apps must use a JWT to access this endpoint. OAuth apps must use basic authentication with their client ID and client secret to access this endpoint.

SELECT
id,
email,
login,
marketplace_pending_change,
marketplace_purchase,
organization_billing_email,
type,
url
FROM github.apps.marketplace_subs_stubbed
WHERE account_id = '{{ account_id }}' -- required
;