List subscriptions for the authenticated user
GET {{baseUrl}}/user/marketplace_purchases?per_page=30&page=1
Lists the active subscriptions for the authenticated user. You must use a user-to-server OAuth access token, created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an OAuth token.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
per_page | number | Results per page (max 100) | |
page | number | Page number of the results to fetch. |
RESPONSES
status: OK
[{"billing_cycle":"monthly","next_billing_date":"2017-11-11T00:00:00Z","unit_count":null,"on_free_trial":true,"free_trial_ends_on":"2017-11-11T00:00:00Z","updated_at":"2017-11-02T01:12:12Z","account":{"login":"github","id":4,"url":"https://api.github.com/orgs/github","email":null,"organization_billing_email":"billing@github.com","type":"Organization"},"plan":{"url":"https://api.github.com/marketplace_listing/plans/1313","accounts_url":"https://api.github.com/marketplace_listing/plans/1313/accounts","id":1313,"number":3,"name":"Pro","description":"A professional-grade CI solution","monthly_price_in_cents":1099,"yearly_price_in_cents":11870,"price_model":"flat-rate","has_free_trial":true,"unit_name":null,"state":"published","bullets":["Up to 25 private repositories","11 concurrent builds"]}}]