Zapier Integration
Zapier allows you to automate workflows using Sharetribe events without writing code. This is optional and does not affect the core Sharetribe - Twinr connection.
When Should You Use Zapier?
Use Zapier when you want to send push notifications to your Twinr mobile app users based on events occurring in your Sharetribe marketplace, such as listing or transaction activities.
π Important Notes
Each push notification must be triggered from one Zap
You must create two separate Zaps:
Zap 1: Listing Events
Zap 2: Transaction Events
Each Zap must send data to Twinrβs Push Notification Webhook Endpoint
Both Zaps work independently and must be published separately
Prerequisites (Must Be Completed First)
1. Connect Sharetribe Plugin in Twinr
Open Twinr Builder
Go to Plugins β Sharetribe
Enter Client ID and Client Secret
Save and verify the connection
2. Enable Firebase in Twinr
Open Twinr Builder
Enable Firebase for your app
This is required to deliver push notifications to mobile devices
3. Enable Login & Add Login Script (Mandatory)
Push notifications will not work without this step.
Go to Twinr Builder β Screens β Login
Enable Login
Add the Login Script
Save changes
This allows Twinr to:
Capture the userβs device token
Map Sharetribe users to mobile devices
π Refer to the Login Help Doc for detailed login setup instructions.
4. Get Twinr Push Notification Webhook Endpoint
Twinr will provide you with a Webhook Endpoint
This endpoint is used in Zapier to send push notifications
Step-by-Step: Create Zap for Listing Events (Optional)
Create this Zap only if you want push notifications for listing-related events.
Step 1: Create a New Zap
Log in to Zapier
Click Create Zap

Step 2: Select Sharetribe as Trigger App
Choose Sharetribe
Click Continue
Connect your Sharetribe account
Select the correct marketplace


Step 3: Choose Trigger Event (Listing Events)
Select Listing Events
Click Continue
Choose an Event Type, such as:
Listing created
Listing updated
Listing deleted
Listing published
Test the trigger and continue

Select Account
Enter Client ID and Client Secret (Available in Sharetribe Application)


Step 4: (Optional) Format Date/Time
Click "Action" or "+"
Add Formatter by Zapier

Select Date / Time
Go to Configure
Format the timestamp if required
Continue


Step 5: Send Push Notification to Twinr
Add Webhooks by Zapier

Choose any HTTP method:
POST
GET
PUT
Custom Request

Click "Continue"
Click Method and Select POST
Enter the Twinr Push Notification Webhook Endpoint in URL field
Map required fields (listing data +
app_id)
OR
Enter API Request body in the Data field if you choose "Custom Request"
Make Data Pass -Through? - False
Click Continue
Test the request
Step 6: Publish Zap
Click Publish
Your Listing Events push notification is now live
Step-by-Step: Create Zap for Transaction Events (Optional)
Create this Zap only if you want push notifications for transaction-related events.
Step 1: Create a New Zap
Click Create Zap
Step 2: Select Sharetribe as Trigger App
Choose Sharetribe
Select Transaction Events

Connect your Sharetribe account
Click Continue
Choose any Event Type

Test the trigger
Step 3: (Optional) Run JavaScript Logic
This step identifies who should receive the notification.
Add a new step β Code by Zapier
Choose Run Javascript
Input Data
customerId
Transaction β Customer β ID
providerId
Transaction β Provider β ID
Code Snippet
πΉ In Sharetribe, the customer always initiates the transaction, so the provider is the opposite user.
Step 4: Fetch User Details (Optional)
Add action β Sharetribe
Choose Show User
Map User ID β
notifyUserId(from Code step)Test the step
πΉ This step fetches user details required for sending notifications.
Step 5: Filter Conditions (Recommended)
Add Filter by Zapier
Allow Zap to continue only if
app_idexistsThis ensures notifications are sent only to valid Twinr users
Step 6: Send Push Notification to Twinr
Add Webhooks by Zapier
Choose POST / GET / PUT / Custom Request
Enter the Twinr Webhook Endpoint
Map transaction data
Test successfully
Step 7: Publish Zap
Click Publish
Transaction event notifications are now enabled
Final Notes
Listing and Transaction Zaps are optional
Each Zap triggers one push notification
Only published Zaps will work
Login Script & Firebase are mandatory
Last updated