Loyalty api : /loyalty/accounts/search mappings requires type which is not documented

When calling the loyalty search api using mappings: (POST /v2/loyalty/accounts/search - Square API Reference)
We get the error:
{‘code’: ‘MISSING_REQUIRED_PARAMETER’, ‘detail’: ‘Field must be set’, ‘field’: ‘loyalty_account.mappings[0].type’, ‘category’: ‘INVALID_REQUEST_ERROR’}
What is the allowed values for type here?

This may be due to missing header’ ```
-H ‘Square-Version: 2021-10-20’ \

:wave: Missing the header wouldn’t do it if your application version is set to that version in your application on the Developer Dashboard. Did you include a LoyaltyAccountMapping Attribute in the request?

Thanks Bryan. That would work as well. In my case used the search by customer id (did not use the LoyaltyAccountMapping ) and it works fine with the -H ‘Square-Version: 2021-10-20’