Synchronising WooCommerce with my provider's API

Hello!

I’m new to Make and I don’t know if I can do this correctly.

I want to sync my car parts supplier’s API with WooCommerce and I’m trying to map the data it gives me.

I have 3 different endpoints with product categories that returns me a list of subcategories.

{
“name”: “SUBCATEGORYNAME",
“Id”: “111”,
}

I have another endpoint that gives me information on the PRODUCTS PER SUBCATEGORY and it gives me this information

{
“ID”: “111.01AF001",
“Name”: “BRAND MODEL-*PRODUCTNAME",
“Price”: “50",
“Stock”: “23",
“image”: “0”
}

I have created 3 HTTP requests with which I get the list of the subcategories and then I do a JSON Parse to organize the data in each of them. It works fine and I get an Array with all the subcategories but now my problem arises.

Whatever I have tried afterwards (Array Agregator or Iterator) only give me the first position of that Array.

My idea is to have a complete list of subcategories to pass them to Airtable or directly create the products in WooCommerce.

Anyone who can give me a clue where the problem is or where I can follow?

Thanks

Welcome to the Make community!

I would suggest completing the Make Academy before jumping into building a complete scenario.

If you need specific assistance when you are building a scenario it’s easier to help you then.

Otherwise, you can also hire a professional by posting in the Professional Services category.

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —

General

Help Center Basics

Articles & Videos

If you need further assistance, please provide the following:

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:
Screenshot_2023-10-07_111039

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Input/Output bundles

Please provide the input and output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
Screenshot_2023-10-06_141025

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-input-bundle.txt (12.3 KB)
module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

samliewrequest private consultation

Join the unofficial Make Discord server to chat with other makers!

1 Like