Retrieves a marketing consent by its details. Required fields:
details.type.details.email OR details.phone.Note: Due to the ongoing development of our new documentation portal, the query parameter is not displaying as expected. Use the details object located in the marketing consent object in the request. You can also see the code example for reference.
This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:
The communication channel of the marketing consent.
Field options. The relevant email or phone must be passed.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.