#lisa_e

1 messages ยท Page 1 of 1 (latest)

dark graniteBOT
true coral
#

๐Ÿ‘‹ happy to help

#

plan_id and price_id are the same

prisma bolt
#

Thanks!

#

So i added this one as the data

true coral
#

would you mind sharing the request id that is throwing that error?

prisma bolt
#

items[0][price]=price_1MP2pfFxD6J2yXIUbfhXyETG

#

this is the error message: The app returned "No such price: 'price_1MP2pfFxD6J2yXIUbfhXyETG\nprorate=false'".

#

But the price exists, I triple checked lol

true coral
#

oh I think I know the problem

#

there's a formatting issue in your API call where the price id is being concatenated with prorate false
price_1MP2pfFxD6J2yXIUbfhXyETG\nprorate=false'

prisma bolt
#

So it should be true?

#

Same error message if i set it to true... The app returned "No such price: 'price_1MP2pfFxD6J2yXIUbfhXyETG\nprorate=true'"

true coral
#

no I mean the price id is only "price_1MP2pfFxD6J2yXIUbfhXyETG"

prisma bolt
#

oh okay..

true coral
#

would you mind sharing the code snippet?

prisma bolt
#

I removed the prorate part and now got this error: The app returned "invalid_request_error".

#

I'm using zapier, one sec, will share a loom...

true coral
#

do you see any request id? req_xxx

prisma bolt
#

I don't see req_xxx...

true coral
#

will be with you shortly

prisma bolt
#

Thanky you ๐Ÿ™

true coral
#

would you mind adding quotes before and after the price?

prisma bolt
#

Let me try, 1 sec...

#

You mean after and before the new price id, right? So items[0][price]="price_1MP2pfFxD6J2yXIUbfhXyETG"

true coral
#

yes

#

I would also put it as JSON if it's better

prisma bolt
#

That worked thanks!

#

The zapier test was now successful, but the actual subscription in Stripe hasn't been updated...

#

It's still the old one, do you have any idea why that is?

pallid cape
#

Hey! Taking over for my colleague. Let me catch up.

prisma bolt
#

Cool, thanks!

pallid cape
#

Just to make sure I understand the context of your last follow-up question, you updated a Subscription with a new price in "Zapier" but the action isn't taken into account?

prisma bolt
#

Yes, correct.

pallid cape
prisma bolt
#

requestID: req_2PXXbmxG9JwalK

#

SubscriptionID: sub_1MUSVMFxD6J2yXIUCENtyB5i

pallid cape
prisma bolt
#

"items": [
{
"price": "price_1MP2pfFxD6J2yXIUbfhXyETG"
}
]

#

this is m ybody with the new price id, is the format correct?

#

Am I missing anything?

pallid cape
#

The body looks ok. But your integration isn't sending any thing to Stripe API, try to log/debug your API calls and see why isn't sending any thing