{"id":13723921,"url":"https://github.com/netlify/gojoin","last_synced_at":"2025-05-07T17:32:10.112Z","repository":{"id":57607997,"uuid":"69896383","full_name":"netlify/gojoin","owner":"netlify","description":"Mini API wrapping Stripes Subscriptions for Single Page Aps and JAMstack sites","archived":true,"fork":false,"pushed_at":"2017-08-28T15:20:08.000Z","size":65,"stargazers_count":41,"open_issues_count":1,"forks_count":10,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-08-04T01:23:13.123Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/netlify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-03T18:01:59.000Z","updated_at":"2023-01-28T21:14:55.000Z","dependencies_parsed_at":"2022-09-03T06:24:16.269Z","dependency_job_id":null,"html_url":"https://github.com/netlify/gojoin","commit_stats":null,"previous_names":["netlify/netlify-subscriptions"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlify%2Fgojoin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlify%2Fgojoin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlify%2Fgojoin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlify%2Fgojoin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netlify","download_url":"https://codeload.github.com/netlify/gojoin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224628216,"owners_count":17343293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T01:01:47.174Z","updated_at":"2024-11-14T13:31:18.567Z","avatar_url":"https://github.com/netlify.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# GoJoin\n\nThis acts as a proxy to Stripe. It exposes a very simple way to call Stripe's subscription endpoints.\n\nGoJoin is released under the [MIT License](LICENSE).\nPlease make sure you understand its [implications and guarantees](https://writing.kemitchell.com/2016/09/21/MIT-License-Line-by-Line.html).\n\n## authentication\nAll of the endpoints rely on a JWT token. We will use the user ID set in that token for the user information to Stripe.\n\nThe API as is:\n\n    GET /subscriptions -- list all the subscriptions for the user\n\nThis endpoint will return a list of subscriptions, but also a JWT token that has been decorated with an `app_metadata.subscriptions` property which is a map of the users subscriptions.\n\nThese endpoints are all grouped by a `type` of subscription. For instance if you have a `membership` type with\nplan levels gold, silver, and bronze.\n\n    GET /subscriptions/:type\n    POST /subscriptions/:type\n    DELETE /subscriptions/:type\n\nThe POST endpoint takes a payload like so\n\n``` json\n    {\n        \"stripe_key\": \"xxxxx\",\n        \"plan\": \"silver\"\n    }\n```\n\nUsing this endpoint will create the plan if it doesn't exist, otherwise it will change the subscription to that plan.\nThe other responses are defined in `api/subscriptions.go`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetlify%2Fgojoin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetlify%2Fgojoin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetlify%2Fgojoin/lists"}