• Resolved nicolaseliell

    (@nicolaseliell)


    I’m trying to get the full WooCommerce customer object from ?rest_route=/wc/v3/customers/42 endpoint 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/42 but 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!

    • This topic was modified 3 years, 11 months ago by nicolaseliell.
    • This topic was modified 3 years, 11 months ago by nicolaseliell.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘How to get full customer data’ is closed to new replies.