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/transitioned events.
- Checks that the transaction’s previous transition is
transition/request-payment to focus only on post-payment state changes.
- Fetches the transaction’s current
lastTransition from Sharetribe and confirms it equals transition/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-payment and transition/confirm-payment) to match your process.
Requirements
- Sharetribe marketplace with Integration API credentials