#n4jos_api

1 messages ¡ Page 1 of 1 (latest)

wanton sealBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1242352798381772800

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

charred vessel
rain valley
#

Yes i explained my self badly i think look:

#

That is my coupon and my code

#

I have just created this checkout sesion:

charred vessel
#

Can you share the example Checkout Session ID (cs_xxx), so that I can take a look?

rain valley
#

Ok wait a couple minutes

#

Thanks by the way

#

{
"id": "cs_test_b1baYheRCrtNrmf7ogZaRvKUeUb3AyJ208zgGK8yfZh87cNp46Exb6qqQD",
"object": "checkout.session",

#

Oops sorry i also dent you the object

#

but there is the session id

#

Does that work for you?

charred vessel
#

Checking it now

rain valley
#

(meanwhile i will create an other sesion where i can actulay make the codeto work, but i have to send it in the api as a discount):

"id": "cs_test_a1WCBXUak95oVRrgEtgMzQjpVQIGFZkqViVMuZLHQGYLfR0fO1HBuiXe5B"

austere parrotBOT
charred vessel
#

Can you share the promotion code ID (promo_xxx) in the screenshot as well?

rain valley
#

SURE

#

is this one?: promo_1PIhs4D2QOoMtt2sYw200yWE

bright lantern
#

Hi @rain valley I'm taking over this thread

rain valley
#

Thanks

#

do you have all the info? I can share it with you again

bright lantern
#

Looks like you already applied the promro code on cs_test_a1WCBXUak95oVRrgEtgMzQjpVQIGFZkqViVMuZLHQGYLfR0fO1HBuiXe5B but you still want to use it again in cs_test_b1baYheRCrtNrmf7ogZaRvKUeUb3AyJ208zgGK8yfZh87cNp46Exb6qqQD

#

However, the promo code has its first_time_transaction set to true, which mean it can only be applied once.

rain valley
#

Give me one minute i will check changing that variable of the promo code. Because i can actually ad a promo code by sending discounts[][coupon] = PRUEBA50

But when i add allow_promotion_codes = TRUE thoes not work.

#

got it... it was my mistake, i was doing everyhing right but that first_time_transaction was linked to a coustomer, and i did many other purchase with that customer in the past for testing.

#

Thanks a lot

#

That was my mistake

bright lantern
#

No problem. I'm glad to know that you manage to solve the problem by yourself.

rain valley
#

Nah you helped me thank you jack