How to get full customer data
-
I’m trying to get the full WooCommerce customer object from
?rest_route=/wc/v3/customers/42endpoint but I get a 401 unauthorized error even tho I’m providing an the admin user JWT as a Authorization Brearer token in the get request header.This is the process:
1. I register the user
2. I make a request to the JWT validation endpoint with the JWT as a param I got from the register
3. From the validation I get the user ID which I’m going to use to get the full user object from here?rest_route=/wc/v3/customers/42but I cannot get it through.Am I missing something? Clearly I’m doing something wrong so can anyone spot what goes wrong in here?
I also get 200 OK from all the other endpoints but the last one wont work.
Any help would be greatly appreciated!
The topic ‘How to get full customer data’ is closed to new replies.