GET/user/marketplace_purchases

List subscriptions for the authenticated user

Lists the active subscriptions for the authenticated user.

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

2 parameters
per_pageintegeroptional
The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
Default:30
pageintegeroptional
The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
Default:1

4 status codes
200Response
billing_cyclestringrequired
next_billing_datestringrequired
unit_countintegerrequired
on_free_trialbooleanrequired
free_trial_ends_onstringrequired
updated_atstringrequired
accountobjectrequired
planobjectrequired
Marketplace Listing Plan
304Not modified
401Requires authentication
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Resource not found
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 401 is returned: Requires authentication. A 404 is returned: Resource not found.

Was this helpful?