Task: Order to shipment - OFN - Purplship [WIP]

n8n workflow JSON:
{"id":5,"name":"Order to shipment - OFN - Purplship","nodes":[{"name":"Map list","type":"n8n-nodes-base.function","position":[600,220],"parameters":{"functionCode":"return items[0].json.orders.map(item => {\n  return {\n    json: item\n  }\n});\n"},"typeVersion":1},{"name":"Time trigger","type":"n8n-nodes-base.cron","position":[100,150],"parameters":{"triggerTimes":{"item":[{"mode":"everyMinute"}]}},"typeVersion":1},{"name":"Lookup order","type":"n8n-nodes-base.googleSheets","position":[760,220],"parameters":{"range":"orders!A:A","options":{},"sheetId":"1mP7r4GhvB5TLV8KLtdKi7LW21wk2fL0IRrA2V1uc3Is","operation":"lookup","lookupValue":"={{$json[\"number\"]}}","lookupColumn":"ofnOrderNumber"},"credentials":{"googleApi":{"id":"3","name":"Digicirco Google"}},"typeVersion":1,"alwaysOutputData":false},{"name":"Get subscriptions","type":"n8n-nodes-base.googleSheets","position":[280,220],"parameters":{"range":"order-to-shipment-ofn-purplship!A:B","options":{},"sheetId":"14UW1VPd6AMLknrcV-nzJyN82QdZBuwDYFvq5y40si_w"},"credentials":{"googleApi":{"id":"3","name":"Digicirco Google"}},"typeVersion":1},{"name":"Get orders","type":"n8n-nodes-base.httpRequest","position":[450,220],"parameters":{"url":"http://localhost:3001/api/v0/orders","options":{"splitIntoItems":false},"authentication":"headerAuth","queryParametersUi":{"parameter":[{"name":"q[created_at_gt]","value":"={{new Date(new Date().setDate(new Date().getDate()-1)).toISOString().slice(0, 10)}}"},{"name":"q[distributor_id_eq]","value":"={{$json[\"ofnCustomerId\"]}}"},{"name":"q[state_eq]","value":"complete"}]}},"credentials":{"httpHeaderAuth":{"id":"4","name":"OFN api key"}},"typeVersion":1},{"name":"Exists","type":"n8n-nodes-base.if","position":[920,220],"parameters":{"conditions":{"boolean":[{"value1":true}]}},"typeVersion":1},{"name":"NoOp","type":"n8n-nodes-base.noOp","position":[1060,100],"parameters":{},"typeVersion":1},{"name":"Get order","type":"n8n-nodes-base.httpRequest","position":[1100,320],"parameters":{"url":"=http://localhost:3001/api/v0/orders/{{$node[\"Map list\"].json[\"number\"]}}","options":{},"authentication":"headerAuth"},"credentials":{"httpHeaderAuth":{"id":"4","name":"OFN api key"}},"typeVersion":1}],"active":false,"settings":{},"connections":{"Exists":{"main":[[{"node":"NoOp","type":"main","index":0}],[{"node":"Get order","type":"main","index":0}]]},"Map list":{"main":[[{"node":"Lookup order","type":"main","index":0}]]},"Get orders":{"main":[[{"node":"Map list","type":"main","index":0}]]},"Lookup order":{"main":[[{"node":"Exists","type":"main","index":0}]]},"Time trigger":{"main":[[{"node":"Get subscriptions","type":"main","index":0}]]},"Get subscriptions":{"main":[[{"node":"Get orders","type":"main","index":0}]]}}}