#pablo barcos
1 messages · Page 1 of 1 (latest)
When updating a subscription you can update the billing_cycle_anchor to the currentDate (when doing the update) or keep it unchanged, but you can't set a target date:
https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_cycle_anchor
and how can i change now from the dashboard to set the next invoice to 1 december?
AFAIK, the billing anchor is set at the creation of the invoice, or when updating the subcsription. You can't set a target invoice date.
so i con not change the date for the next invoice?
Yeah, but again, you can update the date of the billing_cycle_anchor while updating the subscription. For example in 1 of Decembre, you do an update on the subscription and pass billing_cycle_anchor: now, then the next invoice will come at the start of the next month
and to update now to set the next invoice to 1 of december?
no you can't
and you know how can i delete draf invoices in dashboard?
If the draft invoice is for a subscription you can't delete it, but if it's a manual invoice then you can deleted
is not manual and i dont have the option
Yeah, for subscription/automatic, you can't delete is from your dashboard as I mentioned above
If the draft invoice is automatic, then you can't delete it. You can edit it instead in 1 hour from being created until it will be finalized
https://stripe.com/docs/billing/invoices/subscription#:~:text=Stripe finalizes and sends the invoice in 1 hour
and if i dont want to a invoice be payed?
You need to delete the related subscription then
and created again?
What is the use case you're trying to account for? why you don't want an invoice to be paid first?
the problem is there is a draft invoice created that are wrong
and i dont want it
Sure, then just void it
they will deleted automaticaly?
Invoices are never deleted, but if you void it then there won't be any payment collected
but if you have automatic pay they will charged to de customer?
not if you void it. Recurring invoices are created as a draft and wait an hour to be charged. If for some reason you think the invoice was a mistake you could void it during that time. https://stripe.com/docs/billing/invoices/subscription#subscription-renewal
and how can you void a invoice in the dashboard?
hmm, not sure that you can
and how is the way of void a invoice?
https://stripe.com/docs/api/invoices/void might work
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
you know how to change mode in stripe cli to make changes in the real account
it appears mode: test
I think you can pass the --live command line option(https://stripe.com/docs/cli/post#post-live)
{
 "error": {
  "message": "The provided key 'rk_live_*********************************************************************************************PSXL72' does not have the required permissions for this endpoint on account 'acct_1Kr2WWFwcDcE2pVJ'. Having the 'rak_invoice_write' permission would allow this request to continue.",
  "request_log_url": "https://dashboard.stripe.com/logs/req_GHcTFKO3BkOJlB?t=1667823132",
  "type": "invalid_request_error"
 }
}
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
yeah I don't think you can really make live requests using the CLI, it's not designed for that use case and that option doesn't work very well
I'd suggest writing a script or some code from your real integration
or postman?
I suppose