Transaction-Related Push Notifications

Transaction-related push notifications inform users about order and payment activity in your Sharetribe marketplace.

These notifications are critical for keeping users updated about transactions in real time.

What Are Transaction Push Notifications?

Transaction push notifications are sent when events related to transactions occur, such as:

  • Transaction created

  • Transaction updated

  • Transaction completed

  • Transaction cancelled

Each event triggers a one-time push notification to the relevant user.

Create Zap for Transaction Events

Create this Zap only if you want push notifications for transaction-related events.

Step 1: Create a New Zap

  1. Click Create Zap

Step 2: Select Sharetribe as Trigger App

  1. Choose Sharetribe

  2. Select Transaction Events

  1. Connect your Sharetribe account

  2. Click Continue

  3. Choose any Event Type

  1. Test the trigger

Step 3: (Optional) Run JavaScript Logic

This step identifies who should receive the notification.

  1. Add a new step β†’ Code by Zapier

  2. Choose Run Javascript

Input Data

Field Name
Value

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)

  1. Add action β†’ Sharetribe

  2. Choose Show User

  3. Map User ID β†’ notifyUserId (from Code step)

  4. Test the step

πŸ”Ή This step fetches user details required for sending notifications.


  1. Add Filter by Zapier

  2. Allow Zap to continue only if app_id exists

  3. This ensures notifications are sent only to valid Twinr users

Step 6: Send Push Notification to Twinr

  1. Add Webhooks by Zapier

  2. Choose POST / GET / PUT / Custom Request

  3. Enter the Twinr Webhook Endpoint

Request Body (API Payload)

Field description (API-aligned, concise):

  • application_id – The Twinr Application ID for which the push notification should be sent. (You can copy Application_ID from URL

  • push_title – Title text displayed in the push notification.

  • push_message – Body message of the push notification.

  • push_image – (Optional) Image URL to be displayed in the notification.

  • click_action – Defines the action or screen to open when the user taps the notification.

  • push_tokens – List of device tokens that should receive the push notification.


  1. Map transaction data

  2. 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