Why does Stripe use POST for customer updates instead of PATCH or PUT?

May 20, 2025 5 answers
Asked by seabed survey
I was checking out the Stripe API documentation for the Update a Customer endpoint and noticed that it uses a POST request to update customer details. This seems a bit unusual to me since RESTful APIs usually use PUT for full updates and PATCH for partial updates. I'm curiousโ€”what reasons might Stripe have for choosing POST for this operation?

Answers

tuning fork 256
It's interesting that you find it unconventional. Remember, API operations are fundamentally about formatted text. In the past, verbs weren't as important; POST was used extensively. Now, we often get caught up in following the rules too strictly but at the end of the day, it's just a name for an operation.
Reply to this answer
lexeme.Q4
A lot of APIs don't strictly follow REST principles. Many just use GET for retrieving data and POST for changing it. Honestly, the other methods like PUT and PATCH can be useful for clarity, but many developers don't feel the need to enforce them. It's often more about practicality than adherence to technical rules.
Reply to this answer
hem1p5cm
It's possible that Stripe's choice is just about maintaining compatibility, especially if their API has been around for a while and needs to support older integrations.
Reply to this answer
PinchOfPaprika
I've heard security auditors raise concerns about using anything other than GET and POST for API calls. If Stripe has to work with government systems, they might have to adhere to these standards for security reasons. Iโ€™m not saying I fully agree with them, but they can have a big influence on API choices.
Reply to this answer
sourdough_starter_
Sometimes, it's simply a matter of "because they can." There isn't always a deeper rationale behind these decisions beyond the fact that they're doing it their way.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions