#corollamango74
1 messages · Page 1 of 1 (latest)
Hello 👋
f41380v263548 isn't a valid subscription ID for stripe object
The ID should start with sub_xxx prefix
I apologize. f41380v263548 is the custom user field that the subscription Id is filled in with. Customers do receive a subscription Id that begins with sub_xxx
Because any chatbot user can go through the cancel flow I need the API request URL link to be dynamic. That value is the placeholder that holds each user’s unique subscription id
Can you share a request ID where you're seeing this error?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
I suspect that ID isn't getting dynamically filled
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Yes, here is one.
req_flTigPAACClpbr
I believe you’re right. However, if it helps, I also tried replacing the custom user field with an actual subscription Id and tried to test the API request but I still receive an error. But I don’t see that error in my Stripe logs. Only in my chatbot.
This is waht the API request looks like with an actual subscription id
https://api.stripe.com/v1/subscriptions/sub_1N8SBOL6szVBRFx3pOShyJqK?cancel_at_period_end=true
So you're sending cancel_at_period_end as query parameter, however the API expects it to be part of the POST request body