#oleurud
1 messages ยท Page 1 of 1 (latest)
The full command looks like this:
stripe billing_portal configurations create \
-d "business_profile[terms_of_service_url]=https://whatever.com/privacy/terms-of-service" \
-d "business_profile[privacy_policy_url]=https://whatever.com/privacy/privacy-policy" \
-d "features[customer_update][allowed_updates][]=email" \
-d "features[customer_update][allowed_updates][]=name" \
-d "features[customer_update][allowed_updates][]=address" \
-d "features[customer_update][enabled]=true" \
-d "features[invoice_history][enabled]=true" \
-d "features[payment_method_update][enabled]=true" \
-d "features[subscription_cancel][enabled]=true" \
-d "features[subscription_cancel][cancellation_reason][enabled]=true" \
-d "features[subscription_cancel][cancellation_reason][options][]=too_expensive" \
-d "features[subscription_cancel][cancellation_reason][options][]=missing_features" \
-d "features[subscription_cancel][cancellation_reason][options][]=switched_service" \
-d "features[subscription_cancel][cancellation_reason][options][]=unused" \
-d "features[subscription_cancel][cancellation_reason][options][]=customer_service" \
-d "features[subscription_cancel][cancellation_reason][options][]=too_complex" \
-d "features[subscription_cancel][cancellation_reason][options][]=low_quality" \
-d "features[subscription_cancel][cancellation_reason][options][]=other" \
-d "features[subscription_pause][enabled]=true" \
-d "features[subscription_update][enabled]=true" \
-d "features[subscription_update][proration_behavior]=create_prorations" \
-d "features[subscription_update][default_allowed_updates][]=price" \
-d "features[subscription_update][default_allowed_updates][]=promotion_code" \
-d "features[subscription_update][products][][product]=prod_B1" \
-d "features[subscription_update][products][][prices][]=price_123" \
-d "features[subscription_update][products][][prices][]=price_456"
Hi! Let me help you with this.
What's not working?
Could you please share the Request ID req_xxx? https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_KWr4FQ67l6sHUK
So, what's not working?
checking now the result, maybe it is done successfully, but it is just the response does not contain the products and so?
I was expecting, in the response, to see the products
"subscription_update": {
"default_allowed_updates": [
"price",
"promotion_code"
],
"enabled": true,
"proration_behavior": "create_prorations"
}
but maybe it is correct
I will try it
ahh
OMG it is working properly!
sorry
๐โโ๏ธ
thank you
We don't always include all properties in the response to save bandwidth, but you can expand it: https://stripe.com/docs/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-products