Skip to main content
All CollectionsIntegrationsZapier
Zapier tutorial: Approve a user after the membership fee is paid
Zapier tutorial: Approve a user after the membership fee is paid

How to use Zapier to automate approving users to join the marketplace after they pay you

Yifan Dong avatar
Written by Yifan Dong
Updated over a week ago

Welcome to a practical Zapier tutorial! In this guide, we'll walk through automating the approval of a user to join your marketplace after they have paid their membership fee.

Marketplace admins normally need to manually approve users, which can be time-consuming and delay user access to the marketplace. With Zapier, you can automate this process. Once payment is confirmed via Stripe, Zapier triggers the approval of the user in Sharetribe, granting them instant access to the marketplace upon successful payment. This automation saves you time and effort by eliminating manual approvals. Let’s dive into the technical setup and ensure your marketplace runs smoothly!

About Zapier

Zapier is a powerful and versatile tool for integrating different tools into your marketplace. You can learn more about Zapier in our introductory article or through this brief video from Zapier.

If you haven’t read the introduction and the action/event Zapier articles, we encourage you to do so to better understand how Zapier works. But if you want to dive straight into action, feel free to read on!

What you need for this tutorial

External accounts

  1. Stripe Payment Page

  2. Zapier Account

    • Create a Zapier account if you don’t already have one. You can sign up at www.zapier.com.

    • During registration, Zapier may ask which apps you plan to use. You can enter Sharetribe at this point or add it later.

How to set up your marketplace

Your marketplace must be configured in a certain way to support this Zapier information. Learn more about how to set up your marketplace in our guide to charging a membership fee.

Here is how you should set things up in brief:

  1. User Approval Feature Enabled

  2. Dynamic Parameters Set Up

    • Add the User_ID and Email Address as dynamic parameters to the user approval CTA button. This is crucial to ensure that the correct user ID and email address are fetched during the Zap process so the correct user is approved and notified.

  3. Marketplace Activity

    • Your Sharetribe marketplace (test or live) should have at least one user in a pending approval state so that Zapier can perform the actions and test whether they work. If you don’t have any recent users, sign up as one to ensure there’s data for Zapier to process.

With these pieces in place, let's get started!

Getting your Integration API key from Console

You'll need Integration API keys to connect your Sharetribe marketplace to Zapier.

  1. Click on "+ Add a new application".

  2. Give the application a descriptive name (like Zapier), and select "Integration API".

  3. Click "Add application".

  4. Important: Copy and paste the Client ID and Client secret to a safe place, like a password manager.

IMPORTANT: Think of the Client ID and Secret as a sort of a password to your marketplace that can be used to access your marketplace data through other services. Note that you won’t be able to ever see the Client secret to this application again in the Console under any circumstances. Make sure you copy it to a secure place. If you lose it, you will need to create a new application.

Creating the Zap, step by step

(Optional) Importing the Zap template

  1. Go to www.zapier.com and log in with your account (or create a free one if you don't already have one).

  2. Open the pre-made Zap for automatically approving a user here.

  3. Click on "Try this Zap."

Step 1: Find the payment in Stripe

First, locate the payment in Stripe that will be used as the trigger for approving the user in Sharetribe.

  1. In the Setup section, select the Stripe as the app.

  2. Select "Checkout Session Completed" as the Trigger event.

  3. Connect the Stripe account where you have you’ve set up the subscription fee payment page/ product.

    1. Click Continue to move to the Configure section.

  4. Select "True" in the would you like to use test mode data for the test sample field.

    1. Click Continue to move to the "Test" section.

  5. Test the trigger, and make sure it finds a recent Stripe payment. You can perform a Stripe payment in Test mode (Learn how here).

IMPORTANT: Test payments (payments using test credit card credentials and the test checkout page) do not work as triggers. This means you will not be able to test the fully automated workflow while Stripe is in Test mode. Only Live mode payments on a live checkout page act as triggers. You can use Stripe’s test data only if you are finding the record it creates in Zapier manually while testing your Zap.

Step 2: Approve user

Once the Zap is triggered by Stripe after a successful payment, the next step is to approve the corresponding user in Sharetribe.

  1. In the Setup section, select Sharetribe as the app.

  2. Select "Approve user" as the Action event.

  3. Connect your Sharetribe account.

    1. Click Continue to move to the Configure section.

  4. Select "Client reference ID" as the User ID.

  5. Select "True" in Expand the response to return the full resource?

    1. Click Continue to move to the "Test" section.

  6. Test this action to confirm that Zapier finds the user pending approval corresponding to the payment made.

Final thoughts

Thanks for reading this tutorial about creating a Zap for your Sharetribe marketplace to automatically approve a user after the membership fee is paid!

Please get in touch with us from your Console or from the bottom right section of this page from the chat widget if you have any questions about this guide, or anything else. We'll be happy to help!

Did this answer your question?