Wix API Keys: TPA is not installed

Question:
I’m trying to make a request using an API Key, the documentation for it seems pretty simple, just generate the key, get your siteID and then make the curl request, but when i tried, i get this error:
{ “message”: “TPA is not installed. msid ”, “details”: {} }

Product:
Wix Headless

What are you trying to achieve:
For now, just a simple POST request, but the idea is to get order/payments/users information from the Wix website to consume in another application via the API.

What have you already tried:
This request:
curl --request POST
–url https://www.wixapis.com/stores/v1/products/query
–header ‘Authorization: <APIKey’
–header ‘Content-Type: application/json’
–header ‘wix-site-id: ’
–data ‘{ “query”: { “filter”: “{"paymentStatus":"PAID"}” } }’

My first try i get a scope error, then i generate again an APIKey with the correct scopes.