Comunidade
403 para pegar o token na API
about 1 year ago by JOSE VINICIUS SANTOS DE MELO
Estamos tendo um problema para pegar o token com o oauth, esta é a requisição:
curl --location 'https://id.uat.btgpactual.com/oauth2/token'
--header 'Content-Type: application/x-www-form-urlencoded'
--header 'Authorization: Basic YThhODdkOGYtYjk2NS00ZjQ0LWFhYzYtOGFjYjNiZGQ0NDZiOlVYT3lLTFlOUFppR3hIUDVLcjk2a2dIeVF5MFNBTUczcHl1UlRBRlVTYmR6SWNkNldmVm9mRHBuNzVLd2VQYUFBYVFDVndubXZwSlpyS0RTbmJPYkd3'
--data-urlencode 'grant_type=client_credentials'
--data-urlencode 'scope=empresas.btgpactual.com/transfers'