Jump to content

REST API creating new products workflow


JustJohn

Recommended Posts

Is my understanding correct that to create a new produc with combinations via REST API you must do things in this order:

  1. POST simple product and retrieve its ID
  2. POST all necessary combinations referencing the product's ID
  3. GET product and retrieve the IDs of all stock_availables for that product
  4. Map stock_availables IDs to combinations IDs
  5. PUT stock_availables with the required stock quantities
  6. POST images

Can it be shortened somehow? That's... well, a lot of separate requests just to create a single product. I at least know you can't POST stock_availables which could've made it easier.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...