Stateful API data deletion involves two sides

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the vendors category.

Last Updated: 2024-03-02

I was working with some test data in Stripe and I deleted the test customers over on Stripe's test data dashboard. When I tried paying again locally, I got weird errors. This turned out to be because my local DB had Stripe identifiers for users (etc.) that no longer had any corresponding entities over on Stripe's test API.


In general, any reset of data involving a stateful API probably requires both: