Customer Account API Rant

I hate how the customer accounts api is just so bad at doing it’s job, accessing and changing information about the customer that I have to do half of it with the admin API.

Want to get the total number of orders from an user? Not possible - use the admin API.

Want to change the E-Mail or Phone number? - No? The only right answer

You can subscribe and unsubscribe from E-Mail marketing, wanna do it for sms Marketing? - use the admin API

Not to mention on the authentication you get a value returned “expires_in” which tells you how long the token is valid in seconds from the time of creation, so you have to separately track when you created the token and calculate based on your own tracked time if the token is still valid, instead of returning a timestamp after which the token is invalid.

It’s just frustrating.

Not sure I understand the issue here. You’re dealing with customer data, so using the admin API seems reasonable, no?

I’m trying to make a Customer Accounts Portal for my Headless Shop and THE tool made for exactly that occasion, eg the customer accounts api does not work and I have to fall back to the generic solution, which shopify advise against (and you would need to create an extra dev-app)

Why don’t you create a post with the issues you’re having with the Customer Accounts API rather than ranting then?

Perhaps people may be able to help you with it.

I’m sorry, if this sounded like I’m searching for solution / still have an issue or if I made it seem as if I’m searching for a solution, I did not search for an solution to these Problems, this was 100% just a rant and criticism on shopify api design. Sorry.