#やまだ えしら
1 messages · Page 1 of 1 (latest)
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
OK, so I see you pass a start_date to a phase. Note that there's no phase.start_date param in the schedule creation API https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-phases
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I see, update includes start_date, but create does not.
Yes
This is a slightly different question:
For example, if I want to create a subscription on 5/25 with a 5/1 start and 5/1 as the billing_cycle_anchor, how do I do that?
I am not a main English speaker, so sorry if my meaning is not correct.
As a requirement:
- full payment even if the contract starts in the middle of the month
- the payment cycle should be the 1st day of each month
Ok, so basically you want to backdate a subscription? https://stripe.com/docs/billing/subscriptions/backdating?dashboard-or-api=api#backdating-billing-cycle
Yes!
backdate_start_date
I see, so you can use this to create backdate subscriptions.
Yes, you can follow along this doc to implement backdating
I tried at req_ZbALZeGUN5UEqq
The time period is unintended.
For example, if I created it today, I want it to follow 5/30~6/1, 6/1~7/1, 7/1~8/1. Right now it is 5/30~6/30, 6/30~7/30.
You should also specify a billing_cycle_anchor
thank you. i test it!
The billing_cycle_anchor should be on the first of next month, right?
req_cZ2hbyxKGUOv5o
This will not bill until the date set in the billing_cycle_anchor, which is not the behavior we are looking for.
Sorry, I guess I should tell you our background.
Our service is always paid on the 1st day of each month (9:00 JST). Even if you sign up in the middle of the month, you have to pay the full amount for that month at that moment. (Once the payment is completed, you can use our service.)
Currently, if the subscription is made in the middle of the month, proration_behavior is set to none, and the billing_cycle_anchor is set to 9:00 JST on the 1st day of the next month.
Since the proration_behavior is created as none, the first payment is not made. To work around this, I am manually creating an Invoice and billing.
However, I feel these flows are not the Stripe Way. The manual Invoice is getting in the way of applying coupons, etc.
OK, so basically backdating without charging the customer? Take a look at https://stripe.com/docs/billing/subscriptions/backdating?dashboard-or-api=api#backdating-no-charge and see if it helps
It is the other way around. I want to create a backdated Subscription while billing immediately!
I see, then you can set proration_behavior to always_invoice to invoice the customer immediately.