#NES-checkout

1 messages ยท Page 1 of 1 (latest)

leaden inlet
#

๐Ÿ‘‹ happy to help

primal path
#

evt_1Kw3K9IK1xBhH3tyIiaidXWt I'm using the webhook so I guess that's what your are talking about

leaden inlet
#

listLineItems requires the session id, but it fires a 404 error.
I need instead the request id req_xxx that generated the 404

primal path
#

req_1cHw26nOKKt2CB

leaden inlet
#

you're using the invoice id in_xxx to retrieve the checkout session line items this is why it's not working

#

what's expected is to send the checkout session id cs_xxxx

primal path
#

Okay, where am i supposed to find this id from the request send to the webhook ?

charred crypt
#

Hi! I'm taking over tarzan.

primal path
#

Hi, okay

charred crypt
#

Okay, where am i supposed to find this id from the request send to the webhook ?
Which request are you using?

primal path
#

To summarize, I'm using checkout for subscriptions, on invoice.paid I want to check the item in line items to fetch the duration of the sub (in the metadata)

#

Do I need to save the cs_xxx in database, to retrieve it later for lineItems ?

charred crypt
#

I don't think you need the checkout session of this, the subscription should be enough. Can you clarify exactly what information you are looking for?

primal path
#

I have a subscription product, on which there is 3 or more prices, monthly, 3 months and a year
On each price there is a data stored in the metadata for the duration (in months) and i need this data
That's why I wanted to retrieve lineItems

#

It probably not the smartest design/choice on my end tho

#

Thanks for your help, I've figured it out !
Have a great day

charred crypt