{"id":100,"name":"On new Stripe Invoice Payment update Hubspot and notify the team in Slack","nodes":[{"name":"When Invoice Paid","type":"n8n-nodes-base.stripeTrigger","position":[400,460],"webhookId":"47727266-5233-48e5-b7f7-e47252840a4e","parameters":{"events":["invoice.payment_succeeded"]},"credentials":{"stripeApi":{"id":"{{ $credentials.stripeApi.id }}","name":"Stripe account"}},"typeVersion":1,"id":"17a26229-e09d-4df9-918e-608d824da585","notes":"This stripeTrigger node performs automated tasks as part of the workflow."},{"name":"Update Deal to Paid","type":"n8n-nodes-base.hubspot","position":[1240,500],"parameters":{"dealId":"={{$json[\"id\"]}}","operation":"update","updateFields":{"customPropertiesUi":{"customPropertiesValues":[{"value":"Yes","property":"paid"}]}},"authentication":"{{ $credentials.oAuth2 }}"},"credentials":{"hubspotOAuth2Api":{"id":"{{ $credentials.hubspotOAuth2Api.id }}","name":"Hubspot account 2"}},"typeVersion":1,"id":"9a7ee4d8-14e5-4385-9b44-08781f8f9ff6","notes":"This hubspot node performs automated tasks as part of the workflow."},{"name":"Find Deal based on PO Number","type":"n8n-nodes-base.hubspot","position":[820,480],"parameters":{"operation":"search","filterGroupsUi":{"filterGroupsValues":[{"filtersUi":{"filterValues":[{"value":"={{$json[\"data\"][\"object\"][\"custom_fields\"][0][\"value\"]}}","propertyName":"po_number"}]}}]},"additionalFields":{}},"credentials":{"hubspotApi":{"id":"{{ $credentials.hubspotApi.id }}","name":"Hubspot account"}},"typeVersion":1,"alwaysOutputData":true,"id":"b82c1f2d-2e07-4d2c-91b4-cb938b655c89","notes":"This hubspot node performs automated tasks as part of the workflow."},{"name":"If no PO Number","type":"n8n-nodes-base.if","position":[600,460],"parameters":{"conditions":{"string":[{"value1":"={{$json[\"data\"][\"object\"][\"custom_fields\"]}}","operation":"isEmpty"}]}},"typeVersion":1,"id":"2485fd64-faa0-4fc3-9379-9a8d33ff3ca8","notes":"This if node performs automated tasks as part of the workflow."},{"name":"If no deal found for PO","type":"n8n-nodes-base.if","position":[1020,480],"parameters":{"conditions":{"string":[{"value1":"={{$json[\"id\"]}}","operation":"isEmpty"}]}},"typeVersion":1,"id":"085e5123-d88a-43ea-a629-6acbc013d14e","notes":"This if node performs automated tasks as part of the workflow."},{"name":"Send invoice paid message","type":"n8n-nodes-base.slack","position":[1420,500],"parameters":{"text":":sparkles: An invoice has been paid :sparkles:","channel":"team-accounts","blocksUi":{"blocksValues":[]},"attachments":[{"color":"#00FF04","fields":{"item":[{"short":true,"title":"Amount","value":"={{$node[\"When Invoice Paid\"].json[\"data\"][\"object\"][\"amount_paid\"]/100}}"},{"short":true,"title":"Currency","value":"={{$node[\"When Invoice Paid\"].json[\"data\"][\"object\"][\"currency\"]}}"},{"short":false,"title":"Customer Name","value":"={{$node[\"When Invoice Paid\"].json[\"data\"][\"object\"][\"customer_name\"]}}"},{"short":false,"title":"Customer Email","value":"={{$node[\"When Invoice Paid\"].json[\"data\"][\"object\"][\"customer_email\"]}}"},{"short":true,"title":"PO Number","value":"={{$node[\"When Invoice Paid\"].json[\"data\"][\"object\"][\"custom_fields\"][0][\"value\"]}}"},{"short":true,"title":"","value":"="}]},"footer":"=*Transaction ID:* {{$node[\"When Invoice Paid\"].json[\"id\"]}}"}],"otherOptions":{}},"credentials":{"slackApi":{"id":"{{ $credentials.slackApi.id }}","name":"Slack Access Token"}},"typeVersion":1,"id":"bedc3a79-99c9-46d2-bb52-481937f9a9ec","notes":"This slack node performs automated tasks as part of the workflow."},{"name":"Send no PO Message","type":"n8n-nodes-base.slack","position":[800,240],"parameters":{"text":":x: Stripe Payment with no PO Number :x:","channel":"team-accounts","blocksUi":{"blocksValues":[]},"attachments":[{"color":"#FF3C00","fields":{"item":[{"short":true,"title":"Amount","value":"={{$json[\"data\"][\"object\"][\"amount_paid\"] / 100}}"},{"short":true,"title":"Currency","value":"={{$json[\"data\"][\"object\"][\"currency\"]}}"},{"short":false,"title":"Customer Name","value":"={{$json[\"data\"][\"object\"][\"customer_name\"]}}"},{"short":false,"title":"Customer Email","value":"={{$json[\"data\"][\"object\"][\"customer_email\"]}}"}]},"footer":"=*Transaction ID:* {{$json[\"id\"]}}"}],"otherOptions":{}},"credentials":{"slackApi":{"id":"{{ $credentials.slackApi.id }}","name":"Slack Access Token"}},"typeVersion":1,"id":"cf7fe800-cedd-46f3-99cd-24b7befd0c71","notes":"This slack node performs automated tasks as part of the workflow."},{"name":"Send Deal not found message","type":"n8n-nodes-base.slack","position":[1180,240],"parameters":{"text":":x: Unable to find Deal for the below payment :x:","channel":"team-accounts","blocksUi":{"blocksValues":[]},"attachments":[{"color":"#FF3C00","fields":{"item":[{"short":true,"title":"Amount","value":"={{$node[\"When Invoice Paid\"].json[\"data\"][\"object\"][\"amount_paid\"]/100}}"},{"short":true,"title":"Currency","value":"={{$node[\"When Invoice Paid\"].json[\"data\"][\"object\"][\"currency\"]}}"},{"short":false,"title":"Customer Name","value":"={{$node[\"When Invoice Paid\"].json[\"data\"][\"object\"][\"customer_name\"]}}"},{"short":false,"title":"Customer Email","value":"={{$node[\"When Invoice Paid\"].json[\"data\"][\"object\"][\"customer_email\"]}}"},{"short":true,"title":"PO Number","value":"={{$node[\"When Invoice Paid\"].json[\"data\"][\"object\"][\"custom_fields\"][0][\"value\"]}}"}]},"footer":"=*Transaction ID:* {{$node[\"When Invoice Paid\"].json[\"id\"]}}"}],"otherOptions":{}},"credentials":{"slackApi":{"id":"{{ $credentials.slackApi.id }}","name":"Slack Access Token"}},"typeVersion":1,"id":"0aba6c94-43d5-45dd-80fa-df5dbf25bd31","notes":"This slack node performs automated tasks as part of the workflow."},{"id":"error-fd7b10df","name":"Error Handler","type":"n8n-nodes-base.stopAndError","typeVersion":1,"position":[1000,400],"parameters":{"message":"Workflow execution error","options":{}}}],"active":false,"settings":{"executionOrder":"v1","saveManualExecutions":true,"callerPolicy":"workflowsFromSameOwner","errorWorkflow":null,"timezone":"UTC","executionTimeout":3600,"maxExecutions":1000,"retryOnFail":true,"retryCount":3,"retryDelay":1000},"connections":{},"description":"Automated workflow: On new Stripe Invoice Payment update Hubspot and notify the team in Slack. This workflow processes data and performs automated tasks.","meta":{"instanceId":"workflow-21ecef53","versionId":"1.0.0","createdAt":"2025-09-29T07:07:52.293496","updatedAt":"2025-09-29T07:07:52.293506","owner":"n8n-user","license":"MIT","category":"automation","status":"active","priority":"high","environment":"production"},"notes":"Excellent quality workflow: On new Stripe Invoice Payment update Hubspot and notify the team in Slack. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."}