Authenticating GET Webhook from WooCommerce

Hello all, I’ve set up a REST API key and secret via WooCommerce and am trying to leverage those to pull data from WooCommerce pertaining to orders that we’re having synced to Hubspot as Deals. I’m trying to do this using the Workflow Webhooks.

I’m looking for some very basic understanding of how to use the consumer_key and consumer_secret that was generated by WooCommerce to make the GET request.

I’ve seen this in the API documentation from WC:https://local.wordpress.dev/wp-json/wc/v2/orders?consumer_key=XXXX&consumer_secret=XXXX

However, I’m assuming the best practice would be to use the “API Key” option in the configuration, rather than passing these through as parameters.

Any insight on how to navigate the setup here?

Hey, @rmarkey :waving_hand: Thanks for your post. We’re you able to get this working? If not, can you share more details about what is happening when you try to get it set up? This additional info may help our community members to help you troubleshoot.

Thanks! — Jaycee

Thanks for the reply @Jaycee_Lewis! I’m just having trouble getting authentication to work. I’m getting a 401 reply that I can’t access the order information I’m looking for.

From what I’ve gathered, I may need to push an “Authenticate” message in the header with the client key and client secret, but it doesn’t look like I’m able to do that via Hubspot?

I’m just really struggling with how I’m going to authenticate with WooCommerce API via the Webhook.