#deadshot_api

1 messages ยท Page 1 of 1 (latest)

hazy prismBOT
#

๐Ÿ‘‹ 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/1262730547843563530

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

gleaming egret
#

Here's my update:

    [
        {
            "items": [
                {
                    "price": "price_1P6k4bHCPH5IrTb72tzRoaPx",
                    "discounts": []
                }
            ],
            "discounts": [
                {
                    "coupon": "a6zVFP4n"
                }
            ],
            "end_date": 1714042800,
            "proration_behavior": "create_prorations",
            "start_date": 1713438000
        },
        {
            "items": [
                {
                    "price": "price_1P6k4bHCPH5IrTb7lga66Zks",
                    "discounts": []
                }
            ],
            "discounts": [],
            "end_date": 1725534000,
            "proration_behavior": "create_prorations"
        }
    ]

muted spade
#

Taking a look

#

Yeah you need to omit any phases that have ended from the payload:

You can only update the current and future phases on subscription schedules. You need to pass in all current and future phases when you update a subscription schedule.

gleaming egret
#

Oh, Ok

#

Thanks

muted spade
#

Let me know if that helps

gleaming egret
#

Sure, I will try in a minute

#

It worked

#

Thanks