⚡ Solution Summary
- The error was caused by a typo in the parameter name 'stripe_acccount'.
- Ensure the correct spelling 'stripe_account' is used.
- Verify that the connected account ID is valid.
- Check API keys for proper access to the connected account.
### Describe the bug
The [docs](https://docs.stripe.com/connect/subscriptions?lang=python) state that subscriptions can be create for connected accounts using the `stripe_account` parameter:
However, using the code from the docs returns an `InvalidRequestError: ... Received unknown parameter: stripe_acccount`.
Is it possible to create a subscription for a connected account via the python API?
### To Reproduce
1. Create a connected account
2. Create a customer for the connected account
3. Create a product and price for the connected account
4. Create a subscription for the connected account as per [docs](https://docs.stripe.com/connect/subscriptions?lang=python)
```
stripe.Subscription.create(
customer='{{CUSTOMER_ID}}',
items=[{"price": '{{PRICE_ID}}'}],
expand=["latest_invoice.payment_intent"],
stripe_account='{{CONNECTED_ACCOUNT_ID}}',
)
```
### Expected behavior
Subscription is created for customer on the connecgted account
Actual behaviour:
```
InvalidRequestError: ... Received unknown parameter: stripe_acccount
```
### Code snippets
_No response_
### OS
macOS
### Language version
Python 3.11
### Library version
stripe-python v9.7.0
### API version
2024-04-10
### Additional context
_No response_
Discussion & Fixes