---
title: "Product can only be purchased by a team paying customer or a team admin"
slug: "product-can-only-be-purchased-by-a-team-paying-customer-or-a-team-admin"
updated: 2024-03-14T10:33:15Z
published: 2024-03-14T10:33:15Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://help.nexudus.com/llms.txt
> Use this file to discover all available pages before exploring further.

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

This rules prevents {{variable.customers}} and {{variable.admins}} from purchasing a product if the {{variable.customer}} isn't a {{variable.team}} paying {{variable.customer}} or {{variable.teamadministrator}}. It's designed to help {{variable.teamadministrators}} and paying {{variable.customers}} prevent their {{variable.team}} from making purchases without their approval. 

You need the following details to set up this rule: 
* **The ID of the {{variable.product}} that can't be purchased if the {{variable.customer}} isn't a team paying {{variable.customer}} or a {{variable.teamadministrator}}.**
:::(Info) (Don't know where to get this ID?)
Check out [Finding Product IDs](/v3/docs/finding-product-ids){target="_blank"}. 
:::
* * *

1. {{snippet.FirstStepProcedure}}
2. {{snippet.ValidationRules_Path}}
3. {{snippet.AddValidationRule_Step}}
4. {{snippet.ManualEntry_Step}}
5. {{snippet.NameValidationRule_Step}}
6. {{snippet.DescriptionValidationRule_Step}} 
7. {{snippet.ActivateValidationRule_Step}} 
8. {{variable.SELECT}} **Product sale** in the **Record type**. 

9. {{snippet.ErrorMessageValidationRule_Step}}
10. {{snippet.FormulaValidationRule_Step}} 

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

12. Replace **PRODUCT_ID** with the relevant {{variable.product}} ID. 

*In the example below, the {{variable.product}} ID is 123456789.*

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


11. {{snippet.Save_Changes}}


* * *
All done! We recommend trying to purchase the relevant {{variable.product}} using a test {{variable.customer}} account who isn't a {{variable.teamadministrator}} or paying {{variable.customer}}. If you see your error message displayed as you try to check out, you're good to go.
