title: Creating WooCommerce Custom API
body: <p>I'm looking into creating a WooCommerce endpoint due to the lack of many functionalities in the WooCommerce REST API provided out of the box.</p>
  
  <p>Examples are : Payment, Product-Addons, etc</p>
  
  <p>But I can't find anything to start with, no documentation on how to extend WooCommerce to create a new endpoint. All I could find was creating a Plugin, but I'm not sure if that's what I need.</p>
  
  <p>I want to create php files when called return the desired data like products and orders.</p>
  
  <p>I've tried adding actions and filters to the <strong>functions.php</strong> file, but I can't seem to find the right action/filter for what I want, and looking online I only find old answers that used the old versions of WooCommerce API (legacy v1-2-3 instead of the new v1-2-3).</p>