Skip to main content

Hey! Really hoping someone can help me here.

I can successfully create a product in Shopify, but I want to then add two things to that product: the colour of it and the condition of it. The products are clothing items.

I have tried setting a variant and I have tried sending an API request using the API URL and Json. I can’t get it to work successfully.

The product ID is being extracted as a number and used for the URL and setting the ID in the Json.
This is the code I have been attempting to use:

This was used to set the option names:
{
  "product": {
    "id": "{{product_id}}",
    "options": i
      { "name": "Color" },
      { "name": "Condition" }
    ]
  }
}

 

This was used to set the option values:

{
  "variant": {
    "id": "{{variant_id}}",
    "price": "5.00",
    "options": ,
      "Beige",
      "Very Good"
    ]
  }
}

 

It may have just been extracting the wrong IDs but I need to know how to marry this all up to accurately send the right information to the end points.

 

Please help! Thanks!

Hi ​@EnvisionAdvisory 

Try asking ChatGPT for help.

Share links to the API endpoint documentation you are referencing.

Share screenshots with how your Zap steps are configured in EDIT mode.


Hi ​@EnvisionAdvisory 👋

Just came across this and wanted to check how you’re getting on. Did you manage to get things sorted? 

If not, can you share some screenshots as Troy mentioned of the current set up of that API Request action and any error messages you’re seeing. We’ll be happy to take a closer look, just be sure to remove any personal info (names, emails etc.) first, using a tool like Zappy.

Looking forward to hearing from you!