#AntonKotov

1 messages ยท Page 1 of 1 (latest)

stray spadeBOT
#

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.

mystic quarry
#

Lets chat here

heady root
#

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.

mystic quarry
#

https://stripe.com/docs/api/customers/delete#:~:text=Unlike other objects%2C 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).

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).

heady root
#

So the issue is not with the deletion itself, but rather that Stripe is returning data for a deleted customer. Do you understand? ๐Ÿ™‚

mystic quarry
#

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.

heady root
#

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?

mystic quarry
heady root
#

So, there is no way to clear all customers for the sandbox?

mystic quarry
#

Do you mean deleting all test mode data?

heady root
#

yes

mystic quarry
heady root
#

Is there no way to do this via the API?

mystic quarry
#

I don't believe so

heady root
#

Is there a way to determine, through some parameter, whether a customer has been deleted when retrieving the customer object?

mystic quarry
#

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)

heady root
#

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.

mystic quarry
#

will do

heady root
#

Is there a way to receive a subscription or some notification for this task?

mystic quarry
#

do you mean recieving update about the feature request?

heady root
#

yes

mystic quarry
#

If you file it using the support form above then you'd receive comms when there are any updates

heady root
#

Ok. i will do it!

mystic quarry
#

๐Ÿ‘

heady root
#

Just tell me how to create it here pelase?:)