Hello, good afternoon.
I’m working on an integration with VTEX and I need to retrieve the documents (CPFs and CNPJs) of the customers (consumers) registered on my client’s platform.
I believe the route could be Scroll {{baseUrl}}/api/dataentities/:acronym/scroll?_fields=id,document.
The acronym CL (which, from what I understand, would be the correct acronym for customers) is not found in my client’s homologation keys, so I ran tests using the acronym SP.
When querying the route above, it doesn’t return the documents. If I set the field to _fields=documents or _all, it returns the following message:
{
“Message”: “Cannot read private fields”
}
If I only use fields=id, it returns the found IDs.
The documentation states that a specific permission is required.
Permissions
Any user or application key must have at least one of the appropriate License Manager resources to be able to successfully run this request. Otherwise they will receive a status code
403error. These are the applicable resources for this endpoint:
However, my client has confirmed that my token already has admin permission and should have all the necessary permissions.
Am I doing something wrong in my scroll request?
Is there a way to check which permissions my token has?

