> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# CheckBenefitEligibilityByFilter

# Package: benefitPrograms

# Namespace: PoolService

# Method link: https://dev.wix.com/docs/api-reference/business-solutions/benefit-programs/pools/check-benefit-eligibility-by-filter.md

## Permission Scopes:
Manage benefit programs: SCOPE.BENEFIT_PROGRAMS.MANAGE

## Introduction

Checks benefit eligibility across the beneficiary's pools that contain a benefit for the given item.

Pools are matched by `itemReference` within `namespace` and must belong to `beneficiary`, which defaults to the calling identity. `poolSelector` narrows the matched pools further.

To be redeemed, a benefit's pool must be active and the associated balance must be greater than the cost of the benefit.

Each benefit is checked independently. For example, if there is a benefit with a price of 3 credits and a benefit with a price of 4 credits, and there are 5 available credits, both benefits would be returned as eligible, but they can't both be redeemed.

---

## REST API

### Schema

```
 Method: checkBenefitEligibilityByFilter
 Description: Checks benefit eligibility across the beneficiary's pools that contain a benefit for the given item.  Pools are matched by `itemReference` within `namespace` and must belong to `beneficiary`, which defaults to the calling identity. `poolSelector` narrows the matched pools further.  To be redeemed, a benefit's pool must be active and the associated balance must be greater than the cost of the benefit.  Each benefit is checked independently. For example, if there is a benefit with a price of 3 credits and a benefit with a price of 4 credits, and there are 5 available credits, both benefits would be returned as eligible, but they can't both be redeemed.
 URL: https://www.wixapis.com/benefit-programs/v1/pools/check-benefit-eligibility-by-filter
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  namespace, count, itemReference, itemReference.externalId, itemReference.providerAppId
 Method parameters: 
   param name: additionalData | type: additionalData | description: Additional information.  
   param name: beneficiary | type: IdentificationData    
    - ONE-OF: 
     - name: anonymousVisitorId | type: string | description: GUID of a site visitor that hasn't logged in to the site.  | validation: format GUID
     - name: memberId | type: string | description: GUID of a site member.  | validation: format GUID
     - name: wixUserId | type: string | description: GUID of a Wix user.  | validation: format GUID
   param name: count | type: count | description: Number of items to check.  Ensures the balance is high enough to redeem this many items. | required: true | validation: minimum 1
   param name: itemReference | type: ItemReference   | required: true 
        - name: externalId | type: string | description: External GUID of the item. | required: true | validation: format GUID
        - name: category | type: string | description: Item category.  | validation: maxLength 20
        - name: providerAppId | type: string | description: GUID of the app providing the item. | required: true | validation: format GUID
   param name: namespace | type: namespace | description: Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created. | required: true | validation: minLength 1, maxLength 20
   param name: poolSelector | type: PoolSelector | description: Predefined pool-selection attributes used to select the pools to check eligibility in.  All provided attributes must match for a pool to be selected, while the values within each attribute are alternatives. An empty selector selects all pools in the namespace that match the provided `beneficiary`.  
        - name: poolStatuses | type: array<PoolStatus> | description: Only pools in these statuses are checked. When empty, pools in all statuses are checked.  | validation: maxItems 10
             - enum:
             -     ACTIVE: Pool is active.
             -     PAUSED: Pool is paused. It can be resumed.
             -     ENDED: Pool is ended. It can't be resumed.
             -     PROVISIONING: Pool provisioning is in progress. This status exists for a short time during processing.
             -     RENEWING: Pool renewing is in progress. This status exists for a short time during processing.
             -     PENDING: Pool is pending
   param name: targetDate | type: targetDate | description: Date that the item will be provided to the beneficiary.  This parameter should be used to manage the potential logistics of providing the item.  | validation: format date-time
 Return type: CheckBenefitEligibilityByFilterResponse
  - name: results | type: array<EligibilityCheckResult> | description: Results of the eligibility check for the benefits in the pools that match the request. A pool that contains multiple benefits for the requested item produces one result per benefit.  Empty when no pools match.  
     - name: benefitResults | type: array<BenefitResult> | description: Eligibility status.  | validation: maxItems 10
        - ONE-OF: 
           - name: eligibleBenefitOptions | type: EligibleBenefit | description: Returned when item is eligible to be redeemed.  
              - name: poolId | type: string | description: Pool GUID.  | read-only: true | validation: format GUID
              - name: benefitKey | type: string | description: Benefit key.  | validation: maxLength 64
              - name: itemReference | type: ItemReference | description: Item reference.  
                 - name: externalId | type: string | description: External GUID of the item.  | validation: format GUID
                 - name: category | type: string | description: Item category.  | validation: maxLength 20
                 - name: providerAppId | type: string | description: GUID of the app providing the item.  | validation: format GUID
              - name: price | type: string | description: Price of the benefit in credits.  | validation: decimalValue {"gte":"0","maxScale":4}
              - name: poolInfo | type: PoolInfo | description: Pool information.  
                 - name: balance | type: BalanceAmount | description: Current pool balance  
                    - name: available | type: string | description: number of available credits.  | read-only: true | validation: decimalValue {"maxScale":4}
                    - name: reserved | type: string | description: number of reserved credits.  | read-only: true | validation: decimalValue {"maxScale":4}
                 - name: creditAmount | type: string | description: Initial available amount for associated balances.  | validation: decimalValue {"gte":"0","maxScale":4}
                 - name: displayName | type: string | description: Pool name  | validation: maxLength 64
                 - name: description | type: string | description: Pool description  | validation: maxLength 450
                 - name: poolDefinitionId | type: string | description: Pool definition id  | validation: format GUID
                 - name: creditUnitType | type: string | description: Credit unit type.  | validation: maxLength 16
              - name: benefitInfo | type: BenefitInfo | description: Benefit information.  
                 - name: displayName | type: string | description: Benefit name  | validation: maxLength 64
                 - name: description | type: string | description: Benefit description  | validation: maxLength 256
                 - name: benefitKey | type: string | description: Benefit key.  | validation: maxLength 64
                 - name: price | type: string | description: Price of the benefit in credits.  | validation: decimalValue {"gte":"0","maxScale":4}
              - name: programDefinitionInfo | type: ProgramDefinitionInfo | description: Program definition information.  
                 - name: id | type: string | description: Program definition GUID.  | read-only: true | validation: format GUID
                 - name: externalId | type: string | description: Program definition external GUID.  | read-only: true | validation: format GUID
                 - name: displayName | type: string | description: Display name of the program definition.  | read-only: true | validation: maxLength 64
                 - name: description | type: string | description: Description of the program definition.  | read-only: true | validation: maxLength 450
              - name: programInfo | type: ProgramInfo | description: Program information.  
                 - name: id | type: string | description: Program GUID.  | read-only: true | validation: format GUID
                 - name: externalId | type: string | description: Program external GUID.  | read-only: true | validation: format GUID
                 - name: displayName | type: string | description: Display name of the program.  | read-only: true | validation: maxLength 64
           - name: notEnoughBalanceOptions | type: NotEnoughBalance | description: Returned when the pool's associated balance is lower than the cost of redeeming the items.  
              - name: poolId | type: string | description: Pool GUID.  | validation: format GUID
              - name: itemReference | type: ItemReference | description: Item reference.  
              - name: availableBalance | type: string | description: Pool's associated balance amount in credits.  | validation: decimalValue {"maxScale":4}
              - name: requestedBalance | type: string | description: Price of the item in credits.  | validation: decimalValue {"maxScale":4}
              - name: poolInfo | type: PoolInfo | description: Pool information.  
              - name: programDefinitionInfo | type: ProgramDefinitionInfo | description: Program definition information.  
              - name: programInfo | type: ProgramInfo | description: Program information.  
              - name: benefitInfo | type: BenefitInfo | description: Benefit information.  
           - name: policyExpressionEvaluatedToFalseOptions | type: PolicyExpressionEvaluatedToFalse | description: Returned when the policy is false.  
              - name: poolId | type: string | description: Pool GUID.  | validation: format GUID
              - name: itemReference | type: ItemReference | description: Item reference.  
              - name: failureDetails | type: array<FailureDetails> | description: Failure details.  | validation: maxItems 10
                 - name: code | type: string | description: Failure code  | validation: minLength 1, maxLength 64
                 - name: message | type: string | description: Failure message  | validation: maxLength 256
                 - name: policyId | type: string | description: Policy id  | validation: format GUID
                 - name: appId | type: string | description: App that owns the policy  | validation: format GUID
                 - name: errorData | type: object | description: Information provided by the policy  
              - name: poolInfo | type: PoolInfo | description: Pool information.  
              - name: programDefinitionInfo | type: ProgramDefinitionInfo | description: Program definition information.  
              - name: programInfo | type: ProgramInfo | description: Program information.  
              - name: benefitInfo | type: BenefitInfo | description: Benefit information.  
           - name: poolNotActiveOptions | type: PoolNotActive | description: Returned when the pool isn't active.  
              - name: poolId | type: string | description: Pool GUID.  | validation: format GUID
              - name: poolStatus | type: PoolStatus | description: Pool status.  
                     - enum:
                     -     ACTIVE: Pool is active.
                     -     PAUSED: Pool is paused. It can be resumed.
                     -     ENDED: Pool is ended. It can't be resumed.
                     -     PROVISIONING: Pool provisioning is in progress. This status exists for a short time during processing.
                     -     RENEWING: Pool renewing is in progress. This status exists for a short time during processing.
                     -     PENDING: Pool is pending
              - name: poolInfo | type: PoolInfo | description: Pool information.  
              - name: programDefinitionInfo | type: ProgramDefinitionInfo | description: Program definition information.  
              - name: programInfo | type: ProgramInfo | description: Program information.  
              - name: benefitInfo | type: BenefitInfo | description: Benefit information.  
           - name: benefitNotFoundOptions | type: BenefitNotFound | description: Returned when invalid benefit details are provided.  
              - name: poolId | type: string | description: Pool GUID.  | validation: format GUID
              - name: benefitKey | type: string | description: Specified benefit key.  | validation: maxLength 64
              - name: poolInfo | type: PoolInfo | description: Pool information.  
              - name: programDefinitionInfo | type: ProgramDefinitionInfo | description: Program definition information.  
              - name: programInfo | type: ProgramInfo | description: Program information.  
           - name: poolNotFoundOptions | type: PoolNotFound | description: Returned when invalid pool details are provided.  
              - name: poolId | type: string | description: Pool GUID.  | validation: format GUID
        - name: type | type: Type | description: Eligibility status.  
             - enum:
             -     ELIGIBLE_BENEFIT: Item is eligible to be redeemed.
             -     NOT_ENOUGH_BALANCE: Balance is lower than the cost of redeeming the items.
             -     POOL_NOT_ACTIVE: Pool isn't active.
             -     BENEFIT_NOT_FOUND: Invalid benefit details provided.
             -     POOL_NOT_FOUND: Invalid pool details provided.

 Possible Errors:
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: INVALID_ITEM_REFERENCE | Description: The `itemReference` contains invalid values.


```

### Examples

### CheckBenefitEligibilityByFilter
```curl
~~~cURL
curl --request POST https://www.wixapis.com/benefit-programs/v1/pools/check-benefit-eligibility-by-filter \
  -H "Authorization: <AUTH>" \
  -H "Content-Type: application/json" \
  --data '{
    "poolSelector": {
      "poolStatuses": ["ACTIVE"]
    },
    "itemReference": {
      "externalId": "57273802-b873-495c-8eba-b8f054452e6c",
      "providerAppId": "00000000-0000-0000-0000-000000000000"
    },
    "count": 3,
    "beneficiary": {
      "memberId": "00000000-0000-0000-0000-000000000000"
    },
    "namespace": "benefit_programs_app"
  }'
~~~
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.benefitPrograms.pools.checkBenefitEligibilityByFilter(namespace, options)
 Description: Checks benefit eligibility across the beneficiary's pools that contain a benefit for the given item.  Pools are matched by `itemReference` within `namespace` and must belong to `beneficiary`, which defaults to the calling identity. `poolSelector` narrows the matched pools further.  To be redeemed, a benefit's pool must be active and the associated balance must be greater than the cost of the benefit.  Each benefit is checked independently. For example, if there is a benefit with a price of 3 credits and a benefit with a price of 4 credits, and there are 5 available credits, both benefits would be returned as eligible, but they can't both be redeemed.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  namespace, options.count, options.itemReference, options.itemReference.externalId, options.itemReference.providerAppId, options
 Method parameters: 
   param name: namespace | type: string | description: Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created. | required: true | validation: minLength 1, maxLength 20
   param name: options | type: CheckBenefitEligibilityByFilterOptions  none | required: true 
        - name: itemReference | type: ItemReference | description: Information about the item to check. | required: true 
           - name: externalId | type: string | description: External GUID of the item. | required: true | validation: format GUID
           - name: category | type: string | description: Item category.  | validation: maxLength 20
           - name: providerAppId | type: string | description: GUID of the app providing the item. | required: true | validation: format GUID
        - name: count | type: integer | description: Number of items to check.  Ensures the balance is high enough to redeem this many items. | required: true | validation: minimum 1
        - name: targetDate | type: Date | description: Date that the item will be provided to the beneficiary.  This parameter should be used to manage the potential logistics of providing the item.  
        - name: beneficiary | type: IdentificationData | description: Pool beneficiary. Defaults to the calling identity. Only the beneficiary's pools that also match `pool_selector` are checked.  
           - ONE-OF: 
              - name: anonymousVisitorId | type: string | description: GUID of a site visitor that hasn't logged in to the site.  | validation: format GUID
              - name: memberId | type: string | description: GUID of a site member.  | validation: format GUID
              - name: wixUserId | type: string | description: GUID of a Wix user.  | validation: format GUID
        - name: additionalData | type: object | description: Additional information.  
        - name: poolSelector | type: PoolSelector | description: Predefined attributes used to select the pools to check eligibility in.  When omitted, pools in all statuses are checked. Combined with `beneficiary`, `namespace`, and `item_reference`, the selector further narrows which pools are checked.  
           - name: poolStatuses | type: array<PoolStatus> | description: Only pools in these statuses are checked. When empty, pools in all statuses are checked.  | validation: maxItems 10
                 - enum:
                 -     ACTIVE: Pool is active.
                 -     PAUSED: Pool is paused. It can be resumed.
                 -     ENDED: Pool is ended. It can't be resumed.
                 -     PROVISIONING: Pool provisioning is in progress. This status exists for a short time during processing.
                 -     RENEWING: Pool renewing is in progress. This status exists for a short time during processing.
                 -     PENDING: Pool is pending
 Return type: PROMISE<CheckBenefitEligibilityByFilterResponse>
  - name: results | type: array<EligibilityCheckResult> | description: Results of the eligibility check for the benefits in the pools that match the request. A pool that contains multiple benefits for the requested item produces one result per benefit.  Empty when no pools match.  
     - name: benefitResults | type: array<BenefitResult> | description: Eligibility status.  | validation: maxItems 10
        - ONE-OF: 
           - name: eligibleBenefitOptions | type: EligibleBenefit | description: Returned when item is eligible to be redeemed.  
              - name: poolId | type: string | description: Pool GUID.  | read-only: true | validation: format GUID
              - name: benefitKey | type: string | description: Benefit key.  | validation: maxLength 64
              - name: itemReference | type: ItemReference | description: Item reference.  
                 - name: externalId | type: string | description: External GUID of the item.  | validation: format GUID
                 - name: category | type: string | description: Item category.  | validation: maxLength 20
                 - name: providerAppId | type: string | description: GUID of the app providing the item.  | validation: format GUID
              - name: price | type: string | description: Price of the benefit in credits.  | validation: decimalValue {"gte":"0","maxScale":4}
              - name: poolInfo | type: PoolInfo | description: Pool information.  
                 - name: balance | type: BalanceAmount | description: Current pool balance  
                    - name: available | type: string | description: number of available credits.  | read-only: true | validation: decimalValue {"maxScale":4}
                    - name: reserved | type: string | description: number of reserved credits.  | read-only: true | validation: decimalValue {"maxScale":4}
                 - name: creditAmount | type: string | description: Initial available amount for associated balances.  | validation: decimalValue {"gte":"0","maxScale":4}
                 - name: displayName | type: string | description: Pool name  | validation: maxLength 64
                 - name: description | type: string | description: Pool description  | validation: maxLength 450
                 - name: poolDefinitionId | type: string | description: Pool definition id  | validation: format GUID
                 - name: creditUnitType | type: string | description: Credit unit type.  | validation: maxLength 16
              - name: benefitInfo | type: BenefitInfo | description: Benefit information.  
                 - name: displayName | type: string | description: Benefit name  | validation: maxLength 64
                 - name: description | type: string | description: Benefit description  | validation: maxLength 256
                 - name: benefitKey | type: string | description: Benefit key.  | validation: maxLength 64
                 - name: price | type: string | description: Price of the benefit in credits.  | validation: decimalValue {"gte":"0","maxScale":4}
              - name: programDefinitionInfo | type: ProgramDefinitionInfo | description: Program definition information.  
                 - name: _id | type: string | description: Program definition GUID.  | read-only: true | validation: format GUID
                 - name: externalId | type: string | description: Program definition external GUID.  | read-only: true | validation: format GUID
                 - name: displayName | type: string | description: Display name of the program definition.  | read-only: true | validation: maxLength 64
                 - name: description | type: string | description: Description of the program definition.  | read-only: true | validation: maxLength 450
              - name: programInfo | type: ProgramInfo | description: Program information.  
                 - name: _id | type: string | description: Program GUID.  | read-only: true | validation: format GUID
                 - name: externalId | type: string | description: Program external GUID.  | read-only: true | validation: format GUID
                 - name: displayName | type: string | description: Display name of the program.  | read-only: true | validation: maxLength 64
           - name: notEnoughBalanceOptions | type: NotEnoughBalance | description: Returned when the pool's associated balance is lower than the cost of redeeming the items.  
              - name: poolId | type: string | description: Pool GUID.  | validation: format GUID
              - name: itemReference | type: ItemReference | description: Item reference.  
              - name: availableBalance | type: string | description: Pool's associated balance amount in credits.  | validation: decimalValue {"maxScale":4}
              - name: requestedBalance | type: string | description: Price of the item in credits.  | validation: decimalValue {"maxScale":4}
              - name: poolInfo | type: PoolInfo | description: Pool information.  
              - name: programDefinitionInfo | type: ProgramDefinitionInfo | description: Program definition information.  
              - name: programInfo | type: ProgramInfo | description: Program information.  
              - name: benefitInfo | type: BenefitInfo | description: Benefit information.  
           - name: policyExpressionEvaluatedToFalseOptions | type: PolicyExpressionEvaluatedToFalse | description: Returned when the policy is false.  
              - name: poolId | type: string | description: Pool GUID.  | validation: format GUID
              - name: itemReference | type: ItemReference | description: Item reference.  
              - name: failureDetails | type: array<FailureDetails> | description: Failure details.  | validation: maxItems 10
                 - name: code | type: string | description: Failure code  | validation: minLength 1, maxLength 64
                 - name: message | type: string | description: Failure message  | validation: maxLength 256
                 - name: policyId | type: string | description: Policy id  | validation: format GUID
                 - name: appId | type: string | description: App that owns the policy  | validation: format GUID
                 - name: errorData | type: object | description: Information provided by the policy  
              - name: poolInfo | type: PoolInfo | description: Pool information.  
              - name: programDefinitionInfo | type: ProgramDefinitionInfo | description: Program definition information.  
              - name: programInfo | type: ProgramInfo | description: Program information.  
              - name: benefitInfo | type: BenefitInfo | description: Benefit information.  
           - name: poolNotActiveOptions | type: PoolNotActive | description: Returned when the pool isn't active.  
              - name: poolId | type: string | description: Pool GUID.  | validation: format GUID
              - name: poolStatus | type: PoolStatus | description: Pool status.  
                     - enum:
                     -     ACTIVE: Pool is active.
                     -     PAUSED: Pool is paused. It can be resumed.
                     -     ENDED: Pool is ended. It can't be resumed.
                     -     PROVISIONING: Pool provisioning is in progress. This status exists for a short time during processing.
                     -     RENEWING: Pool renewing is in progress. This status exists for a short time during processing.
                     -     PENDING: Pool is pending
              - name: poolInfo | type: PoolInfo | description: Pool information.  
              - name: programDefinitionInfo | type: ProgramDefinitionInfo | description: Program definition information.  
              - name: programInfo | type: ProgramInfo | description: Program information.  
              - name: benefitInfo | type: BenefitInfo | description: Benefit information.  
           - name: benefitNotFoundOptions | type: BenefitNotFound | description: Returned when invalid benefit details are provided.  
              - name: poolId | type: string | description: Pool GUID.  | validation: format GUID
              - name: benefitKey | type: string | description: Specified benefit key.  | validation: maxLength 64
              - name: poolInfo | type: PoolInfo | description: Pool information.  
              - name: programDefinitionInfo | type: ProgramDefinitionInfo | description: Program definition information.  
              - name: programInfo | type: ProgramInfo | description: Program information.  
           - name: poolNotFoundOptions | type: PoolNotFound | description: Returned when invalid pool details are provided.  
              - name: poolId | type: string | description: Pool GUID.  | validation: format GUID
        - name: type | type: Type | description: Eligibility status.  
             - enum:
             -     ELIGIBLE_BENEFIT: Item is eligible to be redeemed.
             -     NOT_ENOUGH_BALANCE: Balance is lower than the cost of redeeming the items.
             -     POOL_NOT_ACTIVE: Pool isn't active.
             -     BENEFIT_NOT_FOUND: Invalid benefit details provided.
             -     POOL_NOT_FOUND: Invalid pool details provided.

 Possible Errors:
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: INVALID_ITEM_REFERENCE | Description: The `itemReference` contains invalid values.


```

### Examples

### checkBenefitEligibilityByFilter
```javascript
import { pools } from '@wix/benefit-programs';

async function checkBenefitEligibilityByFilter(namespace,options) {
  const response = await pools.checkBenefitEligibilityByFilter(namespace,options);
};
```

### checkBenefitEligibilityByFilter (with elevated permissions)
```javascript
import { pools } from '@wix/benefit-programs';
import { auth } from '@wix/essentials';

async function myCheckBenefitEligibilityByFilterMethod(namespace,options) {
  const elevatedCheckBenefitEligibilityByFilter = auth.elevate(pools.checkBenefitEligibilityByFilter);
  const response = await elevatedCheckBenefitEligibilityByFilter(namespace,options);
}
```

### checkBenefitEligibilityByFilter (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { pools } from '@wix/benefit-programs';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { pools },
  // Include the auth strategy and host as relevant
});


async function checkBenefitEligibilityByFilter(namespace,options) {
  const response = await myWixClient.pools.checkBenefitEligibilityByFilter(namespace,options);
};
```

---