Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save stephenkeep/97ebde8af60eb6ff53c7 to your computer and use it in GitHub Desktop.
Save stephenkeep/97ebde8af60eb6ff53c7 to your computer and use it in GitHub Desktop.
[{"id":"5ff81b0e.a007e4","type":"onthedot-connection","z":"82e250b1.7d1db","name":"Red Ant","api_url":"https://sbapi.onthedot.com/api/v1.0","api_key":"1dOHtajAxKpCP0kLnc6BKMI6ZeQa"},{"id":"4c683b3f.b397c4","type":"onthedot-booking","z":"82e250b1.7d1db","creds":"5ff81b0e.a007e4","name":"Amend Booking","uuid":"","booking":{},"x":430,"y":113,"wires":[["936b83bf.6c948"]]},{"id":"5f17cc1a.a0e834","type":"inject","z":"82e250b1.7d1db","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":93.5,"y":117,"wires":[["dc521785.23ade8"]]},{"id":"3ae77815.c51888","type":"function","z":"82e250b1.7d1db","name":"","func":"msg.payload = {\n uuid: msg.payload.uuid,\n booking: {\n timeslot: {\n timeslotId: msg.payload.timeslotId\n },\n webhook: \"\",\n orderType: \"1\",\n supplierId: \"CitySprint\",\n accountNumber: \"W99969\",\n serviceType: \"Y2\",\n referenceNo: \"12\",\n orderNo: msg.payload.order_id,\n departmentReferenceNo: \"\",\n store: {\n storeId: \"RedAnt-01\",\n instruction: \"test new instructions\",\n info: {\n openTime: \"10:30\",\n closeTime: \"18:00\"\n }\n \n },\n consumer: {\n name: \"test_user_1234_123456\",\n email: \"test@test.com\",\n mobileNumber: \"7777777777\",\n address: {\n firstLine: \"testaddress\",\n secondLine: \"address2\",\n city: \"House A\",\n postCode: \"SE1 8NW\"\n },\n instruction: \"test9999999999\"\n },\n item: {\n referenceNumber: \"123456\",\n itemContentCount: 1,\n weight: 0,\n height: 0,\n length: 0,\n description: \"\",\n readyAt: \"2016-03-17T10:00:00Z\"\n },\n notificationType: \"\"\n }\n};\nreturn msg;","outputs":1,"noerr":0,"x":294.5,"y":188,"wires":[["4c683b3f.b397c4"]]},{"id":"936b83bf.6c948","type":"debug","z":"82e250b1.7d1db","name":"","active":true,"console":"false","complete":"false","x":643.5,"y":112,"wires":[]},{"id":"dc521785.23ade8","type":"function","z":"82e250b1.7d1db","name":"","func":"msg.payload = {\n uuid: '31ac98b5-9d93-4ed9-ba9c-44cea1f1de71',\n timeslotId: '54481-44mlte7s0ugw',\n orderId: '17450380'\n \n}\nreturn msg;","outputs":1,"noerr":0,"x":167.5,"y":188,"wires":[["3ae77815.c51888"]]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment