hey Make peeps
Seeking help! hopefully someone in the community can point me in the right direction
(also like to preface that I’ve searched / tried extensively for a solution, but can’t get this particular scenario to work. Also, my ‘technical’ know-how is pretty low (still learning!))
The goal:
Get (watch) Etsy shop receipts, and then using the receipt data, push a HTTP request to Holded API to generate sales receipts in Holded
(the current Holded module doesn’t have the ‘create document’ action available by defuault, hence why I’ve opted for the HTTP/API route)
The sales receipt in Holded should contain all transaction items that are in the Etsy order, which leads me to my obstacle
The issue
Most orders have more than 1 item, but when building out the API payload in the HTTP module and sending test requests, I can’t get multiple bundles to be sent as 1 operation (1 sales receipt document).
Instead, I have 2 operations as the output, which generates 2 separate documents in Holded for each Etsy transaction collection (product), rather than 1 operation/document with multiple transaction collections (products) iterated over.
Along with this, I also need to send another fixed ‘item’ to Holded for shipping price too, but the shipping data doesn’t exist in the same array / collection data in the initial data source schema.
So, I assumed that this would have to be sent as a fixed item, and then a secondary item that iterates between the product transactions list.
Steps I’ve taken
-
After the Etsy module (Watch Shop Receipts), I’ve added an iterator to split the Etsy ‘Transactions array’ into bundles.
-
Then, in my payload I have a second item for pulling in the product transactions data.
screenshot below
so, how do I go about iterating over bundles to item(s) in the request payload?
If not this method, what set of modules are recommended to use in my scenario?
Any guidance would be very much appreciated, thanks!