Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What is the correct Stripe resource to supply in the metadata when updating a subscription cli callback request?

I can’t figure out how to make a request to using the Stripe API cli callback tool* to include my required metadata in my update subscription request. I have this:

stripe trigger customer.subscription.updated --add customer_subscription:metadata['Environment']=dev

I suspect the issue is in the customer_subscription resource but I’ve tried every combination and have had no success. I have been following (among others) this example: How to add parameters to a Stripe trigger in the console?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

*https://stripe.com/docs/stripe-cli

>Solution :

If you want to add metadata to the subscription, I believe this the command that you need to run

stripe trigger customer.subscription.updated --add subscription:metadata['Environment']=dev

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading