#jkimling
1 messages · Page 1 of 1 (latest)
Hi there 👋 taking a look through what you've shared. While I do, could you provide the ID of the Subscription (sub_123) that you were using to test this?
The data that you shared above, were you successfully able to update a Subscription Schedule using that information? Currently I think you'd encounter an error if you tried to use that data due to multiple phases having identical start_dates.
It looks like I accidentally deleted the subscription from the example I shared above, but I recreated this just now, but with slightly shifted dates. The subscription ID is sub_1MBmN6Q6GyZ7WetFGQ9pvbuv and here is the data from the request:
{
"phases": [
{
"items": [ { "price": "price_1MBmN5Q6GyZ7WetF2P6CoWRR", "quantity": 1 } ],
"start_date": 1670220000,
"end_date": 1670306400,
"collection_method": "send_invoice",
"proration_behavior": "none",
"invoice_settings": { "days_until_due": 28 }
},
{
"items": [ { "price": "price_1MBmOQQ6GyZ7WetFoxlLSt1q", "quantity": 1 } ],
"start_date": 1670306400,
"iterations": 1,
"collection_method": "send_invoice",
"proration_behavior": "none",
"invoice_settings": { "days_until_due": 28 },
"coupon": undefined
},
{
"items": [ { "price": "price_1MBmOQQ6GyZ7WetFCNbDPslQ", "quantity": 1 } ],
"end_date": 1699250400,
"collection_method": "send_invoice",
"proration_behavior": "none",
"invoice_settings": { "days_until_due": 28 },
"coupon": undefined
}
],
"proration_behavior": "none"
}
As above, the first screenshot is the scheduled updates and the second screenshot is the next invoice (which I expect to be sent on Dec 6, not Jan 5)
I think the original request I sent must have been unintentionally modified somehow when I was copying it over to have identical start_dates. I am not seeing any failures on the update requests; the most recent request data that I posted has different start dates. Apologies for the confusion!
Hi there! Just catching up since my teammate needs to step away. Give me a few mins please