How to create product variants using Moltin dashboard?

dashboard
child-products
products
variations

#1

How to add product variants using Moltin dashboard? I explored Moltin dashboard but I did not find any way to add product variants. I am making a website and I want to add size option to the product. How to do I implement this functionality using Moltin api?


#2

Hi at the moment variants aren’t baked into the dashboard however you can add variants via the API:

Our documentation contains all the information needed to create variants at https://docs.moltin.com/catalog/product-variations

If you need any help feel free to message me :slight_smile:

Thank you


#3

Hi Drew,
Do i have to make an admin area to manage product variants? If not then can you explain how it can be done?


#4

Hey,

You don’t need to create an admin area you can use a tool like postman to create the API calls needed to insert the variants and then attach them to the products:

You can also do this via curl requests, for example from the documentation:

curl -X POST https://api.moltin.com/v2/variations \
     -H "Authorization: Bearer 965baf46f390879c213e48cf84dcda16bb6d0819" \
     -d $'{
  "data": {
    "type": "product-variation",
    "name": "Paint colour"
  }
}'

}

In order to this you would need to authenticate using client-credential authentication and insert the returned token into the header of further calls to the API. Client credential authentication allows you perform write functions against your store.


#5

Thanks! Drew
Can you show me how to make size option using postman and a custom text field as an option.


#6

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.