#nicobzz-trigger-webhooks
1 messages · Page 1 of 1 (latest)
Hi there 👋 is there a specific event that you're looking to trigger? This will help make sure I'm testing the exact scenario that you're trying to achieve.
this is the customer.subscription.updated event
I wrote : "stripe trigger customer.subscription.updated --override customer:data.object.customer=cus_LkqJNjueVKlNYt"
but doesn't work
Gotcha, thank you for that clarification, and please bear with me while I work on testing that.
ok no problem
Can you try this override instead and see if it achieves what you're looking?
stripe trigger customer.subscription.updated --override subscription:customer=cus_LkqJNjueVKlNYt
I just did what you do, but it doesn't work the error is:
⣾ Checking for new versions... A newer version of the Stripe CLI is available, please update to: v1.8.11
Setting up fixture for: customer
Running fixture for: customer
Setting up fixture for: plan
Running fixture for: plan
Setting up fixture for: subscription
Running fixture for: subscription
Trigger failed: Request failed, status=400, body={
"error": {
"message": "You cannot combine currencies on a single customer. This customer has had a subscription, coupon, or invoice item with currency eur",
"type": "invalid_request_error"
}
}
but don't worry, doing:
stripe trigger customer.subscription.updated --override customer:id=cus_LkqJNjueVKlNYt
it tells me that the customer id cannot be changes
changed
The tricky part about this flow, is that the CLI is taking multiple actions in order to be able to trigger the necessary event.
If you already have a customer set up, it would likely be easier to trigger the events by just creating a new Subscription for them.
I'll try to debug an other way because it seems to be impossible to do so.
In fact It doesn't matter a lot, I succed to start:
stripe trigger customer.subscription.updated
and I succed to debug a lot, I will check when the server will be running
yes I already have a customer
but the problem is that I don't want a new subscription but a renew of the subscription... but apparently when I subscribe there is the checkout event but also the customer.subscription.updated event that happen? isn't it?
if it's the case I'll debug the way you say.
Thank you very much for your help
Any time, always happy to help. Yes, if you're using Checkout as your integration path to create Subscriptions, then that will trigger multiple types of events.
yes, but also a customer.subscription.updated event if the customer buy a subscription?
Correct, it also generates a customer.subscription.updated event (just tested to confirm).