🎫 Send admin email alerts for paid Sharetribe transactions with Gmail
⚡ 26 views · 🎫 Ticket Management & Triage
Description
Quick overview
This workflow polls Sharetribe for transaction transition events, filters for payments that have just been confirmed, fetches the full transaction details, and sends a notification email to a marketplace admin via Gmail.
How it works
- Polls Sharetribe every minute for
transaction/transitionedevents. - Checks that the transaction’s previous transition is
transition/request-paymentto focus only on post-payment state changes. - Fetches the transaction’s current
lastTransitionfrom Sharetribe and confirms it equalstransition/confirm-payment. - Retrieves the full Sharetribe transaction details including the customer, provider, listing, and payout/pay-in totals.
- Fetches the Sharetribe marketplace name once and formats the key fields, including calculated operator revenue (pay-in total minus payout total).
- Sends a Gmail email to the admin with the marketplace name, listing title, revenue amount, and a link to the transaction in the Sharetribe Console.
Setup
- Add Sharetribe Integration API (OAuth2) credentials and ensure the workflow can read marketplace and transaction data.
- Add Gmail OAuth2 credentials for the account that sends the admin notifications.
- Replace the Gmail “To” address with your admin email and adjust the email subject/body as needed.
- If your transaction process uses different transition names, update the two transition checks (
transition/request-paymentandtransition/confirm-payment) to match your process.
Requirements
- Sharetribe marketplace with Integration API credentials
🔗 Nodes Used
Gmail
📥 Import
Download workflow.json and import into n8n:
Workflow menu → Import from File