LucasV Posted September 13, 2022 Share Posted September 13, 2022 Hi! I'm looking for ways to automate some flows. I want to automatically add a specific product to orders with the tool Pabbly (Zapier / integromat like tool). Now I did not find any API options to add a product to an order so I was thinking to update this in the database. I managed by adding a row to the order detail table and order tax table. Now I'm not sure this is sufficient. does anyone has experience of adding order by api? (my preferred option) or is the SQL import ok? thanks Lucas Link to comment Share on other sites More sharing options...
musicmaster Posted September 15, 2022 Share Posted September 15, 2022 Export the database. Add a product to an order. Export the database again. Then compare the two exports with a tool like WinMerge. When you don't use the API functions this is the best approach to make sure that your sql transactions match what the system would do. 1 Link to comment Share on other sites More sharing options...
LucasV Posted September 17, 2022 Author Share Posted September 17, 2022 Thanks. Great idea. I managed to do this on mac with Beyond Compare. (since files are very big) Link to comment Share on other sites More sharing options...
LucasV Posted September 17, 2022 Author Share Posted September 17, 2022 So, It's not possible to a product on an existing oder by API? Link to comment Share on other sites More sharing options...
musicmaster Posted September 17, 2022 Share Posted September 17, 2022 1 hour ago, LucasV said: Thanks. Great idea. I managed to do this on mac with Beyond Compare. (since files are very big) Most likely those are the statistics tables. You can exclude them. Link to comment Share on other sites More sharing options...
musicmaster Posted September 17, 2022 Share Posted September 17, 2022 1 hour ago, LucasV said: So, It's not possible to a product on an existing oder by API? Other people can help you better with that. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now