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
- WordPress and event-driven programming – what is it about?
- How to remove a metabox from menu editor page?
- How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
- Cleanest/Fastest way to avoid calling and retrieving data from the database multiple times?
- Remove General Tab and Plugin Tab in Settings in Woocommerce
- WooCommerce – Display variation custom field value [closed]
- Woocommerce HTML email option unavailable
- How to add SVG icon above product tab title
- How to change / delete product short description in Woocommerce
- Randomise upload filenames (or another solution to hide the original image URL from theft?)
- Automatically remove a canceled order in Woocommerce
- How to pass arguments to add_action() or retrieve return value of called function?
- How can I apply_filters from inside a function?
- Pass Category Name, Description and Photo into variables to pass to jQuery
- Different Minimum Order Amounts based on Shipping Zone [closed]
- Remove metabox from WordPress menu editor page?
- Displaying Woocommerce Product Category in WordPress
- How to add an arrow to menu items has submenus
- Displaying custom taxonomy on WooCommerce product page
- Don’t insert if permalink is the same?
- Change “add to cart” button color based on Woocommerce product category [closed]
- My php header() function is not working [closed]
- Is there a way to hook or call a custom woocomerce template that is not part of the default templates of woocommerce?
- get taxonomy thumbnail and use it as a variable in code
- Buddypress update user avatar image via REST
- How to catch wordpress post ID when it’s published
- How to upload WP user avatar on woocommerce account page [closed]
- How to relocate paypal button gateway on checkout page in woocommerce
- Only show size attributes in product box woocommerce when available
- How do I run code every 24 hours?
- How do i wrap woocomerce attribute in list?
- Removing files programmatically
- How to pass hook variable to function?
- Woocommerce. Get a list of products in the current category on the archive page and product page
- How can I enter on the Thank you page in woocommerce the discount code I assigned to the product category?
- Use wp_head hook on template page
- Force REST API Authentication for each request method
- How do I check if a product is in two categories?
- Remove span tags from WooCommerce Downloads page
- Global variable doesnt’t pass to another function
- Exclude category from woocommerce product category list
- Edit woocommerce_product_archive_description using hook
- Get original value in save_post action hooka
- How to create loop inside wordpress function?
- WooCommerce Quantity in Dropdown menu instead of clasic [closed]
- WP_Query To Display Product Of Brand On Taxonomy Page
- Hot to edit WooCOmmerce dashboard?
- How to have more than one ID included in the exclude command?
- WordPress using get_term to retreive slug not working as expected
- Can’t make product images clickable
- Post formating on Home page
- calling a function from a class in your template
- Hide cart when empty [closed]
- Order woo products, but first products must be with acf fields
- Warning: Attempt to read property “term_id” on int – Woocommerce
- Headers already sent error with get_template_part in REST API call
- Find owner of coupon
- REST API custom endpoints for metaboxes
- Facing Problem While Running WordPress Hook For Archive, Categories, Author, Date Pages Only