#espagnol01
1 messages · Page 1 of 1 (latest)
Hi there, is this the days_until_due in the Subscription APIs? (https://stripe.com/docs/api/subscriptions/update?lang=node#update_subscription-days_until_due)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yes, i am creating a subscription. Should I pass the unix value for the days as the value? or should I just write the days?
The API doc says Number of days a customer has to pay invoices generated by this subscription. , so the data type is integer.
got it. Thank you. Another question. When I want to send the subscription invoice to the customer, should I use https://api.stripe.com/v1/invoices/invoice_id/send or finalize?
You can't send an invoice if it's still in draft, you can only send a finalized invoice to your customer.
so, should I do both?
In another words, you need to finalize first before sending it.
if I finalize it, would it be sent automatically after a certain amount of time?
If this is an invoice created by subscription, then yes Stripe will send the invoice automatically. You usually use the send invoice API to send invoice out of the normal schedule.