Make Order Requests with WP REST API to Utilize WooCommerce Lottery Plugins
-
I am working on a Raffle Lottery WordPress site (https://afrolottogh.com/) which runs on the WooCommerce Lottery and WooCommerce Lottery Pick Number plugins. I am trying to externally make ticket orders or purchases to the site using the WordPress REST API Endpoint for order requests.
I aim to have the plugin automatically assign lottery ticket numbers to orders made via the API based on the order quantity.
Could someone provide guidance or examples on how to structure order requests using the WP REST API in a way that aligns with the WooCommerce Lottery plugin’s ticket assignment mechanism? Any insights or code snippets would be greatly appreciated.
So I tested out the order request via the WP REST API and realized that in using the WordPress REST API Endpoint to make orders to the lottery site, ticket selection or assigning is not possible.
Orders made via the API are created successfully but then no ticket is assigned and when you check the lottery history tabs all purchases or orders via the API have ZERO as their ticket numbers.
But for ticket purchases or orders made directly on the site, everything works as it should
The page I need help with: [log in to see the link]
- The topic ‘Make Order Requests with WP REST API to Utilize WooCommerce Lottery Plugins’ is closed to new replies.