Woocommerce Api 401 – Application Authentication Endpoint
-
Hi,
I’m trying to integrate woocommerce api in my laravel project, i dont want to manually get consumer secret so im trying to get those via Application Authentication Endpoint.
it redirects me , and i need to login but after logging in im getting a 401 unauthorized error with following body:
Error: An error occurred during the application and it was impossible to send the consumer data.
i cant find anything on woocommerce logs.. tried deleting cookies, different browser, i’ve also tried to disabling all plugins except for woocommerce and going back to a default wordpress theme
Kind regards,
Askin$store_url = 'https://www.mystore.be'; $endpoint = '/wc-auth/v1/authorize'; $params = [ 'app_name' => 'MyApp', 'scope' => 'read_write', 'user_id' => 5, 'return_url' => 'https://app.myapp.be/sales-channels/woocommerce/return', //GET Route 'callback_url' => 'https://app.myapp.be/sales-channels/woocommerce/callback' //POST Route ]; $query_string = http_build_query($params); return redirect()->away($store_url . $endpoint . '?' . $query_string);
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Woocommerce Api 401 – Application Authentication Endpoint’ is closed to new replies.