• Resolved dayley

    (@dayley)


    Hi,
    We have a WordPress Multisite which contains 8 sub-sites.
    Each sub-site has WooCommerce installed, and each sub-site sells different products, all which are shipped from the same yard/warehouse.

    We have just had an independent CRM & Inventory system developed which we are wanting to connect to all 8 of the WooCommerce stores using hooks & API’s to grab each sub-site’s orders, customers, products, and to sync stock.

    I can see in WooCommerce > Settings > Advanced that I can create API’s and Hooks for each of the stores, but I am wondering ion the CRM’s side would 8 individual API receivers will be required? Or only 1 that can accept a connection to all 8 WooCommerce API’s? (If this makes sense)

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter dayley

    (@dayley)

    Also, what attributes can the WooCommerce API read/write?

    Hey @dayley,

    Great questions. Each site in the multi-site network will have its own REST API endpoints. That would require having the CRM communicate with all of them. It may be possible to write something custom that allows for communication with only one but that’s not an option out of the box.

    There is excellent documentation on the REST API to show how it works and what options are available. Check this out and let us know if you have any questions.

    https://woocommerce.github.io/woocommerce-rest-api-docs/

    Thanks!

    Thread Starter dayley

    (@dayley)

    Yeah, I looked through the documentation already, but what I was reading seemed Klingon to me. So I wanted to try and get a better understanding from someone direct.

    Hey @dayley,

    Getting started with REST APIs can feel a bit odd. You may find it helpful to take a bit of time to familiarize yourself with how they work and what you can do with them. This Smashing Magazine article can give you an overview.

    https://www.smashingmagazine.com/2018/01/understanding-using-rest-api/

    From there the documentation should start to make more sense. Once you understand that, then you’ll be able to create requests in your custom system to pull the information you need via the WooCommerce REST API.

    I found it helpful to use the Postman App to practice with the REST API. It lets you make requests and view the results along with any error messages.

    https://www.postman.com/product/api-client/

    You may also find this article helpful.

    https://sgwebpartners.com/how-to-use-woocommerce-api/

    Cheers

    Hi @dayley,

    Since we haven’t heard from you in a while, we’re hoping that means you were able to get this resolved. I’m going to close this thread out now.

    If you’re still having trouble, please open up a new topic and we’ll be happy to help out.

    Stay safe!

    Thread Starter dayley

    (@dayley)

    Yes I think you pretty much answered my question. Many thanks.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Using REST API’s & Hooks for WooCommerce’ is closed to new replies.