List accounts for a plan

GET {{baseUrl}}/marketplace_listing/plans/:plan_id/accounts?sort=created&direction=<string>&per_page=30&page=1

Returns user 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.

Request Params

KeyDatatypeRequiredDescription
sortstringOne of created (when the repository was starred) or updated (when it was last pushed to).
directionstringTo return the oldest accounts first, set to asc. Can be one of asc or desc. Ignored without the sort parameter.
per_pagenumberResults per page (max 100)
pagenumberPage number of the results to fetch.

RESPONSES

status: OK

[{&quot;url&quot;:&quot;https://api.github.com/orgs/github&quot;,&quot;type&quot;:&quot;Organization&quot;,&quot;id&quot;:4,&quot;login&quot;:&quot;github&quot;,&quot;organization_billing_email&quot;:&quot;billing@github.com&quot;,&quot;marketplace_pending_change&quot;:{&quot;effective_date&quot;:&quot;2017-11-11T00:00:00Z&quot;,&quot;unit_count&quot;:null,&quot;id&quot;:77,&quot;plan&quot;:{&quot;url&quot;:&quot;https://api.github.com/marketplace_listing/plans/1111&quot;,&quot;accounts_url&quot;:&quot;https://api.github.com/marketplace_listing/plans/1111/accounts&quot;,&quot;id&quot;:1111,&quot;number&quot;:2,&quot;name&quot;:&quot;Startup&quot;,&quot;description&quot;:&quot;A professional-grade CI solution&quot;,&quot;monthly_price_in_cents&quot;:699,&quot;yearly_price_in_cents&quot;:7870,&quot;price_model&quot;:&quot;flat-rate&quot;,&quot;has_free_trial&quot;:true,&quot;state&quot;:&quot;published&quot;,&quot;unit_name&quot;:null,&quot;bullets&quot;:[&quot;Up to 10 private repositories&quot;,&quot;3 concurrent builds&quot;]}},&quot;marketplace_purchase&quot;:{&quot;billing_cycle&quot;:&quot;monthly&quot;,&quot;next_billing_date&quot;:&quot;2017-11-11T00:00:00Z&quot;,&quot;unit_count&quot;:null,&quot;on_free_trial&quot;:true,&quot;free_trial_ends_on&quot;:&quot;2017-11-11T00:00:00Z&quot;,&quot;updated_at&quot;:&quot;2017-11-02T01:12:12Z&quot;,&quot;plan&quot;:{&quot;url&quot;:&quot;https://api.github.com/marketplace_listing/plans/1313&quot;,&quot;accounts_url&quot;:&quot;https://api.github.com/marketplace_listing/plans/1313/accounts&quot;,&quot;id&quot;:1313,&quot;number&quot;:3,&quot;name&quot;:&quot;Pro&quot;,&quot;description&quot;:&quot;A professional-grade CI solution&quot;,&quot;monthly_price_in_cents&quot;:1099,&quot;yearly_price_in_cents&quot;:11870,&quot;price_model&quot;:&quot;flat-rate&quot;,&quot;has_free_trial&quot;:true,&quot;unit_name&quot;:null,&quot;state&quot;:&quot;published&quot;,&quot;bullets&quot;:[&quot;Up to 25 private repositories&quot;,&quot;11 concurrent builds&quot;]}}}]