Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing endpoint /customers/:id/subscriptions #99

Open
rasmuscnielsen opened this issue Sep 11, 2019 · 1 comment
Open

Missing endpoint /customers/:id/subscriptions #99

rasmuscnielsen opened this issue Sep 11, 2019 · 1 comment

Comments

@rasmuscnielsen
Copy link
Contributor

It seems that the endpoint /customers/:id/subscriptions is not implemented.

Official stripe: GET https://api.stripe.com/v1/customers/cus_[...]/subscriptions

{
  "object": "list",
  "data": [],
  "has_more": false,
  "url": "/v1/customers/cus_[...]/subscriptions"
}

Localstripe: GET localhost:8420/v1/customers/cus_[...]/subscriptions

404: Not Found

Is there any plans to implement this endpoint?

That the rest of the integration is working quite well with my test suite. I only ran into the missing support for testing card-tokens (as pointed out in another issue), which was an easy fix 👍

Cheers

@adrienverge
Copy link
Owner

Hi @rasmuscnielsen, thanks for reporting this.

It should be fairly easy to implement: add a new route after

('GET', '/v1/customers/{id}/tax_ids', Customer._api_list_tax_ids)))
and implement Customer._api_list_subscriptions() that would simply return obj.subscriptions.

A pull request would be welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants