cancel
Showing results for 
Search instead for 
Did you mean: 

Create Configurable Product Error - REST API

Create Configurable Product Error - REST API

Greetings,

 

I tried to create a Configurable Product through REST API. So I have completed two steps.

1. Set the Configurable attribute.

POST <host>/rest/default/V1/configurable-products/MS-Champ/options

           It returns ID.(Example : "15" )

 

But I have issue with "Link the Simple products to the Configurable Product"

Method:

POST <host>/rest/default/V1/configurable-products/MS-Champ/child

But It gives me an error.

{"message":"The product that was requested doesn't exist. Verify the product and try again."}

Reference:
https://devdocs.magento.com/guides/v2.3/rest/tutorials/configurable-product/define-config-product-op...

Version :
2.3

ScreenShots:

screen error 3.pngScreen error.png

 

Why I am getting this?

 

Thanks,

Justin.