I figured out it could be an Authorization problem, then I looked the WooCommerce webhook functions and fount where the delivery is executed: /wp-content/plugins/woocommerce/includes/class-wc-webhook.php I hard coded my Authorization header after line # 303 in the deliver() function:
'headers' => array(
'Content-Type' => 'application/json',
'Authorization' => 'Basic bmNkaWgdrGFsOiNIb25kdXJhczIwMThTUFMh',
),
Now I need to calculate the Authorization Basic token based on the id of the user who created the Webhook who is authorized in order to make this solution flexible.
Related Posts:
- Woocommerce: hook action/filter I could use to add variation id and price with each attribute opt on WooCommerce Rest api
- WooCommerce: Can’t use wc_get_products for custom REST API endpoints
- Remove Woocommerce product link
- WooCommerce: How to display item meta data in email confirmation using woocommerce_order_item_meta_end
- How to remove “out of stock” variation options from size dropdown in woocommerce?
- How to Remove a Filter from the Admin List Table?
- Problem with Woocommerce REST API Authentication
- Woocommerce, recognize the loop of related products
- Replace existing content from specific WooCommerce admin orders list column
- Continue execution after WP REST API response
- using woocommerce_template_single_add_to_cart in shop-loop – javascript issues [closed]
- How To Change The Html of Products filtration sidebar in Woocommerce?
- WooCommerce: Add Payment Gateway Field to Webhooks [closed]
- How to add a second ‘place order’ button in WooCommerce [closed]
- Setting up 2 SMTP accounts: 1 for wordpress and 1 for woocommerce
- Woocommerce hook run after an Order been created through REST API
- Reload part of checkout on changed shipping method
- Woocommerce api: create product with images – bad request
- Trying to build simple deposit code that hooks into woocommerce
- Add a product to checkout via form
- Is it possible to intercept all ajax requests and get the parameters and the returns?
- How to remove woocommerce_breadcrumb() from do_action( ‘woocommerce_before_main_content’ ); [closed]
- WC_Customer delete function returns error
- Custom route and query
- WP_REST_Response – How to return Gzip answer and add Content-encoding header?
- How to sort WooCommerce products page by latest in-stock items first?
- Variation prices breakdown only for single product page
- Display custom field value in woocommerce variable product via jQurey
- php code for outputting a custom page in my account
- Adding custom field to product category and show it to shop/category shop page
- WooCommerce REST API AJAX Auth – 401 response
- Looping through and combining calls to Woocommerce REST API
- Adding new divs with custom classes to products on WooCommerce shop page [closed]
- Discount in the specific product title using keyword ( Woocoommerce )
- get Woocommerce product format json for WP_Query
- How do I remove an action hook inside a class that is called by another class?
- Clone the “proceed to cart” button and place it above checkout on the cart page, but only appear display size is 320px
- How to add custom checkout field in user details mail template
- Change Checkout “Place Order” text if cart has a specific product
- Send a custom notification to customer on WooCommerce cancelled order status
- Woocommerce – add tracking code to another email template
- What is different about using admin-ajax.php in an endpoint and just submitting a form from the front end?
- REST API Plugin Update call back not updating the plugin
- Checking page before applying image restrictions while uploading
- Custom reduce stock code affecting date_modified – How to bypass?
- Woocommerce order status payment
- Change Dashboard URL from wp-admin to wp-admin/index.php
- Dynamically added custom fields not displayed on WooCommerce email notifications
- Modify WooCommerce used to get all orders in dashboard
- Output product category link from WP_Query
- save_post trigerred twice
- Woocommerce. Get a list of products in the current category on the archive page and product page
- How to work Woocommerce pagination inside shortcode?
- How to get woocommerce orders with get_posts method in a shortcode
- WP_Query for woocommerce products with a pattern as a post_title
- How can I enter on the Thank you page in woocommerce the discount code I assigned to the product category?
- WordPress Fresh Install Errors (Woocommerce specifically now)
- How to restrict shipping zone in a specific interval time
- Woocommerce append shipping method form
- Replace category title with category description in woocommerce
- Generate images with html2canvas and the woocommerce api
- Hide specific product from Woocommerce if the logged-in user has already enrolled into the course
- Payment field disappears on custom Paypal plugin
- Creating a brand attribute as a variable
- Add Custom Category Description When Empty
- Generate a QR code when creating a new WordPress user
- Convert a column of a table containing an Array as response in HTML
- Replace a single variable with add_filter
- I am having issue in divi woocomerce checkout module. (DIVI theme)
- WordPress api post image raw data without being blank in media library
- How do I set a hidden field to a value?
- How to update ticket price programatically when adding to cart and checkout in woocommerce
- Filter wordpress posts without searching the keywords in the post content
- REST api returns 404 on some WordPress sites
- Add a product category to a specific product via a button
- WooCommerce Query Product Titles
- Removing “There is no account with that username or email address.” error message in “/wp-login.php?action=lostpassword”
- Woocommerce My acount page
- Woocommerce – Exclude variation attribute on specific variation
- How do I add a function to parent theme
- Get WooCommerce products with similar SKU
- How to remove Login from in my account page
- Woocommerce disable order item link (backend) [closed]
- Prevent header and footer from loading on specific pages with template or plugin
- Woocommerce display orders with products from specific categories to specific admins
- Set all WooCommerce Products to Simple, Virtual & Downloadable
- Integrate admin plugin into template. Very interesant (live search + autocomplete with wp rest api, in vanilla js)
- Add custom field on admin dashboard comments / reviews
- Require()/Include() post template adding extra content
- Undefined array key 0 wp-includes/capabilities.php on line 76
- I am having errors with checkout on wordpress
- Billing detail page doesn’t work after I’ve changed the order of the Woocommerce navigation
- Contain multiple page templates in one PHP custom template file in WordPress?
- Show full post instead of excerpt
- Display div if category has a specific parent
- PHP function for horizontal Woocommerce thumbnails and badges
- How do I know if the user is a customer?
- How to add a shortcode which runs a .php file for the current post
- global $product is empty string when passed into function
- Change the URL of an image from wp_get_attachment_image_src for Product Posts based on Category