#nunu0951_docs

1 messages ¡ Page 1 of 1 (latest)

atomic robinBOT
#

👋 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/1310551171454210050

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

mighty parrot
#

hi there!

atomic robinBOT
regal tinsel
#

POST /v1/subscriptions/sub_1QOvYYEf37nkqkTsRSIeR6ZA

#

req_bn1V0VL6i9qk0N

worthy merlin
#

As the error message suggests, you won't be able to apply coupon if you want to turn this update into a pending one, if it fails. You either need to change the payment_behavior or remove the coupon.

regal tinsel
#

i need to apply a different coupon when the user upgrades , so need to change the payment_behavior?

#

what value to be given

worthy merlin
regal tinsel
#

i used pending_if_incomplete to support sca

#

can i pass default_incomplete

worthy merlin
regal tinsel
#

ok so can i use default_incomplete

worthy merlin
#

Both allow_incomplete (default) and default_incomplete support SCA/3DS scenarios. I would suggest going with the default value - allow_incomplete.

regal tinsel
#

can you please check req_tZT8WGdv5QrrnJ

#

what is the error?

worthy merlin
#

discounts parameter must be an array. You provided an object.

regal tinsel
#

{
"discounts": {
"coupon": "BFYEAR"
},
"expand": {
"0": "latest_invoice.payment_intent"
},
"items": {
"0": {
"id": "si_RHUXDCZxksATFh",
"plan": "price_1IKzVeEf37nkqkTsVww0sbzZ"
}
},
"payment_behavior": "allow_incomplete",
"proration_behavior": "always_invoice"
}

#

this is the rwquest

#

can you give me a sample post data

worthy merlin
#

Please refer to my previous message.

#
"discounts": [{
  "coupon": "BFYEAR"
}],
regal tinsel
#

ok thanks will check

regal tinsel
#

can you pls check req_BFwokdrXzbVAlb

#

"A canceled subscription can only update its cancellation_details why this erro

worthy merlin
#

Because the Subscription is cancelled.

#

All the errors that you shared seem self-explanatory. I invite you to read the error messages carefully and you will be able to solve the challenges yourself much faster going forward.