Have a request to create a product
/api/product/add/
We transfer the goods and if there is such a product, an error is generated
{"status":"error","errors":["Product with this Article exist!"]}
Is it possible to do the same as in api requests for the client? What if such a product already exists, then do not give an error, but simply update the data that came in the new request?
[file]15470[/file]
Have a request to create a product /api/product/add/ We transfer the goods and if there is such a product, an error is generated {"status":"error","errors":["Product with this Article exist!"]} Is it possible to do the same as in api requests for the client? What if such a product already exists, then do not give an error, but simply update the data that came in the new request?
Yes, you can. Go to the new api https://app.swaggerhub.com/apis-docs/Bodya44/OneBoxOSapiv2/2.0#/product/productset , the productset method does what you need
and how many hours to complete update in the old api? And do I still have hours on my balance sheet? Just on the old api, all the integrations that we did work and I would not really like to redo everything because of 1 setting
and how many hours to complete update in the old api? And do I still have hours on my balance sheet?
Just on the old api, all the integrations that we did work and I would not really like to redo everything because of 1 setting
in the add method to make an update? No, you need to send a request to the update method if the add method gave an error. Those. you need to finish so that when you receive an error in add, send the same request to add, possibly with some changes
in the add method to make an update? No, you need to send a request to the update method if the add method gave an error. Those. you need to finish so that when you receive an error in add, send the same request to add, possibly with some changes
Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter.
Log in and comment
Donate
You don't have enough funds in your account Top up