Automated order confirmations with Abacate Pay: first-buyer coupon rewards via email & Slack
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Slack. It also calls api.abacatepay.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Configs (Edit Fields (Set)): sets 4 fields: token, companyName, companySite…
- CheckToken (If): checks a condition and branches into true / false
- GetOrders (HTTP Request): calls api.abacatepay.com
- RespondError (Respond to Webhook): sends the response back to the webhook caller
- CheckFirstOrder (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- CreateCustomCoupon (HTTP Request): calls api.abacatepay.com (POST)
- MakeBodyEmail (Code): runs custom JavaScript code
- Slack: uses Slack
- Send Email: sends an email over SMTP
Services it uses
HTTP calls to: api.abacatepay.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Code
n8n-nodes-base.code - Send Email
n8n-nodes-base.emailSend - Slack
n8n-nodes-base.slack - HTTP Request
n8n-nodes-base.httpRequest
From the author
Workflow Overview This workflow provides a complete, automated post-purchase solution triggered by a successful payment webhook from Abacate Pay. (For international users, think of Abacate Pay as 'the Brazilian Stripe' – a popular and robust payment gateway…