As you said “Coupon is created in WooCommerce end”, we can confirm that custom endpoint “webhook” is working finely.
The issue is regrading to retrieve Email Address
from the response. The moosend schema body is consist of JSON Object. So you have to decode the response to array first.
Try to change your code as following code. It will convert JSON Objects into PHP Array and then retrieve Email Address from the Array
$requestArr = json_decode($request, true);
$email = $requestArr["properties"]["Event"]["ContactContext"]["properties"]["EmailAddress"];
Related Posts:
- Output JSON object with woocommerce products
- WooCommerce: Can’t use wc_get_products for custom REST API endpoints
- Process checkout using WC REST API
- How to build a plugin that supports authenticated POST requests to the REST API from external servers?
- Extend Woocommerce rest api routes fails
- How to filter Post using Meta Data REST API
- How to stop a Gutenberg Block from firing multiple GET Requests?
- Problem with cURL and rest API
- Woo API REST : product variation price is read-only?
- Category Tree In WooCommerce Product API
- How to upload Woocommerce product images via API? [closed]
- How to handle Woocommerce API credentials
- What will make Woocommerce REST API to issue 401 [closed]
- Woocommerce custom endpoints
- Woocommerce REST API – updating an order changes custom tax calculations
- Woocommerce Rest Api Categories problem [closed]
- Check if a category has a parent category in WooCommerce REST API
- API returns blank response after installing & uninstalling WP-rest-api plugin
- woocommerce axios react
- Get specific values in Woocommerce Rest API
- wc_get_products() not return the images details
- WooCommerce – Add product with image via REST API
- Tax are not showing on order while placing order with REST API
- JWT on Woocommerce cannot work with “Customer” role user
- Woocommerce REST API – add filter to set maximum query per page for product brands [closed]
- WooCommerce – Create multiple product tags via rest api endpoint
- Using the WordPress and WooCommerce REST APIs in the same Node app
- WordPress Woocommerce REST API JSON Error
- How to solve `Error getting remote image` in woocommerce rest api script?
- Getting in an exception for get product detail by id in woocommerce REST api
- Impossible to create a new WooCommerce customer using Rest API
- Woocommerce API security concerns
- How can I send information when a order is completed to my own POS?
- Woocommerce Rest API: woocommerce_product_invalid_image_id
- How to save one API response to WooCommerce order meta data
- Working with a json feed & trying to figure out how best to import
- WC Booking query bookings with date ranges
- Delete product image using WooCommerce API?
- “error_message”: “Sorry, you cannot list resources.” using WooCommerce API
- Woocommerce REST API: creating variations
- Woocommerce REST API not considering discounts and coupons
- WooCommerce REST API endpoints don’t exist
- Fetch products with filter by similar categories at same time
- Send data to external websites when there is an update or create a post
- Auto generating API keys using the Application Authentication Endpoint [closed]
- GET woocommerce order request is not showing meta data [closed]
- How to add fee_lines using woocommerce rest API v3?
- WooCommerce Order Sync via Custom REST API Endpoint Failing
- Update a server-side render Block when woocommerce cart block changed
- not saving the WC_Session_Handler session and removing the product from the cart session in WooCommerce’s custom rest api
- Sort by promo code used woocommerce admin panel [closed]
- Add category description on product page (Woocommerce)
- How can I let the user choose size of a shoe in the store? [closed]
- WooCommerce – item added to order not actually saved? [closed]
- Hide/show specific products for backend users in woocommerce
- show payment receipt in woocommerce thankyou page with custom payment gateway?
- Restrict the shop_manager role to the WooCommerce Orders Page
- WooCommerce, after moving reviews tab to under product description. If pagination link is clicked description is hidden
- How to disable click thumbnail product on archives product [closed]
- Hide .woocommerce-price-suffix on the product list page
- I’d like to add a button under the “Add to Cart” button which says “Buy on Amazon” and links to my Amazon product page [closed]
- Woocommerce shows empty columns [closed]
- If YITH Wishlist page is set to the WooCommerce my-account endpoint, the endpoints stop working all together. Any solution?
- WooCommerce pay per photo upload [closed]
- Product atributes in title of order (not in description)
- How to create custome pdf file of my invioice in wordpress
- Is it possible to hide certain products from displaying in the search results
- How to edit schema.org markup of WooCommerce?
- Display product variations on same row [closed]
- Override woocommerce template from parent theme
- How to get sub items of parent menu item?
- WordPress Woocommerce product-category info on one line [closed]
- Manual Woocommerce Complete order Emails
- Search box missing Woocommerce Product Bundle Extension
- WordPress and WooCommerce How to Assign Attribute Based Pricing
- Is it possible to customize username field from the registration page in woocommerce? [closed]
- Woocommerce cart displays outdated prices [closed]
- Woocommerce display price without formatting [closed]
- Own WooCommerce theme showing text boxes instead of slider for price filter widget
- Turkish Character Problem on mailing
- WooCommerce: Order Details Table > Add Product Meta
- Create custom add to cart in WordPress
- woocommerce: get product detail form sku [closed]
- Adding Extra Customer Email In Woocommerce Checkout
- How to override email text New Customer Order?
- Woo-Commerce new order email no style attached
- Woocommerce 404 after chang default language
- My WordPress site hacked with unwanted popups [closed]
- Override function
- woocommerce method to preview new order email,avilable hook
- Woocommerce: Extra added country field not taking value from database
- When creating a new order (on the dashboard) how can I get the ID of the selected customer
- How do I create a array custom field for use with facetwp.com?
- Setup WooCommerce to properly handle inventory with variable product?
- How to get price of my products show in snippet on google?
- Link Back to Parent Category – Woocommerce
- Can a woocommerce hook alter the UI of a website?
- Change WooCommerce registration form/way?
- Create templates from attributes for categories
- How to show woocommerce login / registration form in modal