#alex.hettinger
1 messages · Page 1 of 1 (latest)
Hey!
When the SetupIntent is called, a customer record including an invoice is created
This doesn't sound right. Do you have an example?
If the purchase does not materialise, the order is automatically cancelled after 24h.
What order?
just a moment
for example this one https://dashboard.stripe.com/subscriptions/sub_1LD2xIHOyZ0rDvCTBcSpx8Y6
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Ok, a Subscription. Not a Setup Intent
yes, it's a subscription
The subscription doesn't create the customer, you're passing the customer parameter when creating the subscription with an existing customer ID: https://dashboard.stripe.com/logs/req_Jpk8giL4YYoMf0
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Is it possible to delete these customers?
Sure, you can delete customers: https://stripe.com/docs/api/customers/delete
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
We generate many "fake" customers every day: https://dashboard.stripe.com/subscriptions?status=incomplete_expired&created[gte]=1647212400&created[lte]=1655897069&starting_after=sub_1LD46fHOyZ0rDvCT0qTFLsIE
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
If we delete these customers, are the invoices then also deleted and the reporting recalculated?
No, you'd need to void the invoices
But in this cases the invoice is already voided, or not?
https://dashboard.stripe.com/subscriptions/sub_1LD3vtHOyZ0rDvCTHfk9LUnm
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You can't delete an invoice. Voiding is the best option here
Sorry, I should state they can't be deleted once finalised: https://stripe.com/docs/invoicing/overview#invoice-statuses
ok, thanks for your help and the details.
np