Sample - GitHub REST API
GET/marketplace_listing/accounts/{account_id}

Get a subscription plan for an account

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.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter
account_idintegerrequired
account_id parameter

3 status codes
200Response
urlstringrequired
typestringrequired
idintegerrequired
loginstringrequired
organization_billing_emailstringoptional
emailstringoptional
marketplace_pending_changeobjectoptional
marketplace_purchaseobjectrequired
401Requires authentication
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Not Found when the account has not purchased the listing
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 401 is returned: Requires authentication. A 404 is returned: Not Found when the account has not purchased the listing.