#shimmmaz
1 messages · Page 1 of 1 (latest)
Hi
Try to set next_payment_attempt when creating an invoice with collection_method:charge_automatically
https://stripe.com/docs/api/invoices/object#invoice_object-next_payment_attempt
https://stripe.com/docs/api/invoices/object#invoice_object-collection_method
that field seems to be on the object, but I don't see how I can set it up.. Is there any other way?
Ah sorry, I missed that. You can't set it via API.
what you can do is to create a draft Invoice, in your integration create a schedular and finalize/pay the invoice after 30 days
Can you please reference how to create a scheduler?
Also, can I instead create a subscription and only run it once? so it as if works like a one-time invoice?
that's something depending on your integration and framework you are using.
Yeah you can create a subscription for only one month/day and cancel it.
I am using curl calls to the API. Do you mean to say that I can create an invoice in draft mode, then manage when I tell it to get paid on my side?