#AntonKotov
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- AntonKotov, 1 hour ago, 10 messages
Lets chat here
As I mentioned earlier, when requesting customer data, you return information about a deleted customer. The customer does not have any status indicating whether they are deleted or not. How are we supposed to understand that the customer is deleted, and is it correct for you to return data for a deleted customer?
request for find user https://api.stripe.com/v1/customers/search?query=name:"user_source_cp.qa14.ecomzworld.one_id_2"
returned deleted user
{
"object": "search_result",
"data": [
{
"id": "cus_P77qeUEaPiuU8y",
"object": "customer",
"address": null,
"balance": 0,
"created": 1701525039,
"currency": null,
"default_source": null,
"delinquent": false,
"description": null,
"discount": null,
"email": "admin@test-mail.com",
"invoice_prefix": "975DE67F",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": null,
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {},
"name": "user_source_cp.qa14.ecomzworld.one_id_2",
"next_invoice_sequence": 1,
"phone": null,
"preferred_locales": [],
"shipping": null,
"tax_exempt": "none",
"test_clock": null
}
],
"has_more": false,
"next_page": null,
"url": "/v1/customers/search"
}
We haven't noticed such an issue before; this problem surfaced on December 13, 2023.
Unlike other objects, deleted customers can still be retrieved through the API in order to be able to track their history. Deleting customers removes all credit card details and prevents any further operations to be performed (such as adding a new subscription).
So the issue is not with the deletion itself, but rather that Stripe is returning data for a deleted customer. Do you understand? ๐
This is expected as explained by the doc above
you can still retreieve a deleted customer
Unlike other objects, deleted customers can still be retrieved through the API in order to be able to track their history.
Is there a way to determine that a customer has been deleted?
maybe some status?
Or is it possible to somehow delete a customer and completely erase their history for sandbox?
Good question, typically merchants listen to customer.deleted webhook event to know when an object gets deleted
https://stripe.com/docs/api/events/types#event_types-customer.deleted
So, there is no way to clear all customers for the sandbox?
Do you mean deleting all test mode data?
yes
Is there no way to do this via the API?
I don't believe so
Is there a way to determine, through some parameter, whether a customer has been deleted when retrieving the customer object?
huh it doesn't look like there is. That's definitely odd.
I can flag this as a feature request (if you want to do that yourself then you can file it using https://support.stripe.com/?contact=true)
Find help and support for Stripe. Our support site 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.
I would greatly appreciate it if you could make this request. Moreover, I believe this would be beneficial not only for our product in the future but also for others. It seems logical to have a parameter that allows determining whether an entity is deleted or not when it is possible to retrieve it.
will do
Is there a way to receive a subscription or some notification for this task?
do you mean recieving update about the feature request?
yes
If you file it using the support form above then you'd receive comms when there are any updates
Ok. i will do it!
๐
Just tell me how to create it here pelase?:)