Product can only be purchased by a team paying customer or a team admin
  • 28 Sep 2022
  • 1 Minute to read
  • Comment

Product can only be purchased by a team paying customer or a team admin

  • Comment

This rules prevents customers and admins to purchase a product if the customer making the purchase isn't a team paying customer or team admin. It is great way to help team admins and paying customers prevent their team members from making certain purchases without their approval.

You need the following details to set up this rule:

  • The ID of the product that can't be purchased if the customer isn't a team paying customer or a team admin.
Don't know where to get this ID?

Check out our tutorial on Finding Product IDs.


  1. If the navigation menu isn't visible, click the menu icon in the top left corner of the page.

  2. Click Add rule

  3. Click on Manual entry

  4. Name your validation rule.

  5. Add a Description for your rule to let other admins know what it does at a glance.

  6. Enable the This rule is active toggle.

  7. Select Product sale in the Record type.

  8. Add the Error message to display if the validation rule is not met.

  9. Add the following code snippet to the Formula field.

record.Product.Id <> PRODUCT_ID OR record.Coworker.IsPayingMember() OR record.Coworker.IsTeamAdministrator()
  1. Replace PRODUCT_ID with the relevant product ID.

In the example below, the product ID is 123456789.

record.Product.Id <> 123456789 OR record.Coworker.IsPayingMember() OR record.Coworker.IsTeamAdministrator()

  1. Click the Save Changes button.


All done! We recommend trying to purchase the relevant product using a dummy customer account who isn't a team admin or paying customer. If you receive the error message you've defined in the rule, you're good to go!


Was this article helpful?