#Mr Stinky Pants

1 messages · Page 1 of 1 (latest)

kind auroraBOT
ruby urchin
#

Hello, it sounds like you are using billing, in that case you can just list the invoices for that customer and see if they meet your criteria for not being deleted

hallow temple
#

so theres nothing for payments as it shows in the dashboard?

#

although i guess it doesnt matter if they are cancelling. i just assumed you couldnt delete a customer who has paid

ruby urchin
#

I don't think I fully understand your use case, maybe an example would help. Can you give me an example of a customer you would want to delete vs one that you wouldn't?

hallow temple
#

im making a link to cancel the subscription in the email they get. so im guessing many will cancel during the 7 days, so i would want to get rid of that customer completely

#

other customer might cancel later but have paid for some months

#

looking at the api it looks like the customer is still in the database

ruby urchin
#

@hallow temple apologies for missing your messages, the server has been very busy.

#

Do you have subscriptions here or are you creating each of these invoices yourself?

#

If you have subscriptions, you can likely check the cancelled_at timestamp on each of them to see how long ago the customer unsubscribed.

hallow temple
#

you can delete customers who have paid in the past and it keeps their paid invoices?

ruby urchin
#

Yep the invoices will still exist