#funk101
1 messages ยท Page 1 of 1 (latest)
Hello ๐
You might be able to use override flag for this
https://stripe.com/docs/cli/trigger#trigger-override
thanks I'll check
not sure of syntax, is this right? stripe trigger customer.subscription.updated --override fixtureName:subscription.cancel_at_period_end=true
Hi ๐
you wouldn't need to include fixtureName. Unless that's a placeholder
what is considered a "fixtureName"?
this -> stripe trigger customer.subscription.updated --override subscription:cancel_at_period_end=true
that seemed to work
hmm, but you can only add 1 parameter?
this is not possible I guess -> stripe trigger customer.subscription.updated --override [subscription:id:sub_1MP7OgJvvgQ6mkrVnau5icsb,subscription:cancel_at_period_end=true]
I don't think that would be properly interpreted. Have you tried simply using multiple assignment expressions with spaces?
e.g.
stripe trigger customer.subscription.updated --override subscription:customer_id=cux_ZZZZ subscription:price_id=price_XXXX
did this -> stripe trigger customer.subscription.updated --override subscription:id=sub_1MP7OgJvvgQ6mkrVnau5icsb --override subscription:cancel_at_period_end=true got this -> Trigger failed: Request failed, status=400, body={ "error": { "code": "parameter_unknown", "doc_url": "https://stripe.com/docs/error-codes/parameter-unknown", "message": "Received unknown parameter: id", "param": "id", "request_log_url": "https://dashboard.stripe.com/test/logs/req_q0TmOjSgyPIxPN?t=1675097804", "type": "invalid_request_error" } }
"id" I guess is not the right param
You can examine the actual fixtures that the CLI uses to check the parameter names here: https://github.com/stripe/stripe-cli/tree/master/pkg/fixtures/triggers
thanks