#tymm
1 messages · Page 1 of 1 (latest)
Upon checking, indeed that set proration date is not available in latest Stripe Java library v22.8.0: https://github.com/stripe/stripe-java/blob/v22.8.0/src/main/java/com/stripe/param/SubscriptionCreateParams.java
Can you try using putExtraParam() for proration date as described here instead: https://github.com/stripe/stripe-java#parameters
hmmm, it says Received unknown parameter: items[0][proration_date]; code: parameter_unknown; request-id: req_cBlys0p4eNOGlr
https://stripe.com/docs/api/subscription_items/create#create_subscription_item-proration_date is the API for Create Subscription Item. You are using Create Subscription API
proration_date was placed inside SubscriptionCreateParams which is in the item list of the subscription im creating
No I don't think proration_date is within Subscription Create API. It's a parameter on Subscription Item Create API.
I think you might need to break down to 2 APIs
is there a reason for the absence of proration_date properties in the subscription create api when the subscription update api has it?
I am not super sure about that but it could just be a limitation on our API, sorry
alright, got it. lemme try calling them separately. thanks
good luck!
hmmmm now im getting
Cannot specify proration date outside of current subscription period or current phase. The value should be between 1706755800 and 1709251200.; request-id: req_XLiI9vHoR3KxGX
need your suggestions on this 😅
prior to calling subscription create api i made a call to invoice upcoming to make a preview to show the prorated price to customer. so by the time my code creates the subscription it will use the same timestamp used when creating the preview to make the price consistent
Hmm not sure about your flow, but the request specified proration_date = 1706752800 which < 1706755800 (start date)