Task: Create WooCommerce coupon

n8n workflow JSON:
{"meta":{"instanceId":"2872777e468ba025c28c67ebf483f93425a37d897dfc1056e0c00cc75112d703"},"nodes":[{"id":"0ba6ea15-a40d-4e24-8a5a-d0ccacef370c","name":"Customer","type":"n8n-nodes-base.set","position":[360,280],"parameters":{"values":{"string":[{"name":"email","value":"luiz@powertic.com"},{"name":"percent","value":"10"},{"name":"coupon","value":"={{ ((+new Date).toString(36).slice(-5) + Math.random().toString(36).substr(2, 5)) }}"}]},"options":{},"keepOnlySet":true},"typeVersion":1},{"id":"3c01d51f-ece2-4034-93c3-a9f58ace1b8c","name":"When clicking \"Execute Workflow\"","type":"n8n-nodes-base.manualTrigger","position":[-280,280],"parameters":{},"typeVersion":1},{"id":"f5a33fef-c7e2-4587-a6d6-6a991cbe863c","name":"Sticky Note","type":"n8n-nodes-base.stickyNote","position":[80,80],"parameters":{"width":516.4646464646457,"height":355.15151515151507,"content":"## Configure Lead / Customer Data\n\n- Configure the email;\n- Configure the discount percentage;\n- Generate Coupon Code Randomly"},"typeVersion":1},{"id":"e5dbd6be-f445-4b45-934d-067eccac79b4","name":"Sticky Note1","type":"n8n-nodes-base.stickyNote","position":[740,80],"parameters":{"width":536.2121212121212,"height":348.1818181818182,"content":"## Calculates Coupon Expiration Time\n\n- You can adjust the coupon expiration time by adding days to the current time;\n- You can adjust this as per your needs.\n- WooCommerce does not allow using expired coupons."},"typeVersion":1},{"id":"a97a8e87-1edd-4253-a022-b4627ea27e87","name":"Sticky Note2","type":"n8n-nodes-base.stickyNote","position":[1420,80],"parameters":{"width":521.1111111111111,"height":350.5050505050506,"content":"## Generate the coupon in WooCommerce\n\n- Generates the coupon in WooCommerce;\n- You can send the coupon to a CRM or by E-mail / WhatsApp;"},"typeVersion":1},{"id":"c8c59fe3-58a2-4b73-8a75-a6fecfaf3f1d","name":"HTTP Request","type":"n8n-nodes-base.httpRequest","position":[1700,280],"parameters":{"url":"https://woo.luizeof.dev/wp-json/wc/v3/coupons","method":"POST","options":{"response":{"response":{"neverError":true,"fullResponse":true,"responseFormat":"json"}}},"sendBody":true,"authentication":"predefinedCredentialType","bodyParameters":{"parameters":[{"name":"code","value":"={{$node[\"Customer\"].json[\"coupon\"]}}"},{"name":"amount","value":"={{$node[\"Customer\"].json[\"percent\"]}}"},{"name":"individual_use","value":"={{ true }}"},{"name":"exclude_sale_items","value":"={{ true }}"},{"name":"minimum_amount","value":"10"},{"name":"email_restritions","value":"={{ [ $node[\"Customer\"].json[\"email\"] ] }}"},{"name":"usage_limit","value":"={{ 1 }}"},{"name":"date_expires","value":"={{$node[\"ExpiresCoupon\"].json[\"expires_at\"]}}"}]},"nodeCredentialType":"wooCommerceApi"},"credentials":{"wooCommerceApi":{"id":"YcpAeVaFLeA5UeUP","name":"WooCommerce account"}},"typeVersion":4.1},{"id":"cae75e87-2b72-4e30-9fa3-06f1d75e1e3f","name":"ExpiresCoupon","type":"n8n-nodes-base.dateTime","position":[1120,280],"parameters":{"options":{},"duration":1,"magnitude":"={{ $today }}","operation":"addToDate","outputFieldName":"expires_at"},"typeVersion":2},{"id":"69e41f66-f183-4f94-bac8-d306973ebfbb","name":"Edit Fields","type":"n8n-nodes-base.set","position":[3180,60],"parameters":{"fields":{"values":[{"name":"email","stringValue":"={{ $('Customer').item.json.email }}"},{"name":"percent","type":"numberValue","numberValue":"={{ $('Customer').item.json.percent }}"},{"name":"coupon","stringValue":"={{ $('Customer').item.json.coupon }}"}]},"include":"none","options":{}},"typeVersion":3.2},{"id":"6ea927a7-90ce-4417-8141-4124f0ff1ddd","name":"IF","type":"n8n-nodes-base.if","position":[2420,280],"parameters":{},"typeVersion":1},{"id":"16b56f91-db46-462b-8c85-2ffaa2abd6ba","name":"Sticky Note3","type":"n8n-nodes-base.stickyNote","position":[2080,80],"parameters":{"width":542.3131313131311,"height":350.47474747474735,"content":"## Checks if the Coupon was generated successfully\n\n- You can handle WooCommerce return\n- If generated successfully, you send it to the lead\n- If an error occurs, you can send a notification."},"typeVersion":1},{"id":"0ccfe91b-6033-4e67-b81d-ccc43906adce","name":"Sticky Note4","type":"n8n-nodes-base.stickyNote","position":[2820,-140],"parameters":{"width":521.3434343434345,"height":343.48484848484867,"content":"# Final step\n\n- Here you can be sure that the coupon was created and can send it to your lead using N8N's various integrations."},"typeVersion":1}],"pinData":{},"connections":{"IF":{"main":[[{"node":"Edit Fields","type":"main","index":0}]]},"Customer":{"main":[[{"node":"ExpiresCoupon","type":"main","index":0}]]},"HTTP Request":{"main":[[{"node":"IF","type":"main","index":0}]]},"ExpiresCoupon":{"main":[[{"node":"HTTP Request","type":"main","index":0}]]},"When clicking \"Execute Workflow\"":{"main":[[{"node":"Customer","type":"main","index":0}]]}}}