Fórum
Ver pergunta

Acesso empresa   

133 visualizações
-1
0

Boas,

Criei aplicação e subscrição de testes (2 subscrições), consigo obter o token no VS e no Postman mas não consigo aceder à empresa criada, onde inclusive criei um orçamento de teste na plataforma online. O erro devolvido é 403 (Forbidden) (…) Unable to get the company Key.

Obrigado.

Faça login para poder traduzir
Jasmin
Marcado como spam
Criado há 5 anos e 3 meses acciopinto-2
a
acciopinto-2 Iniciante
Comentários
Adicionar mais informação será util, sem isso ninguem o pode ajudar.
5 anos e 3 meses
sergiosereno
    No VS utilizei o JasminIntegrationSample e a mensagem de erro é: 250182-0001 Start by requesting an Access Token Request - GET https://identity.primaverabss.com/connect/token System.Threading.Tasks.Task`1[System.Threading.Tasks.VoidTaskResult] As documents are company dependent entities, for this sample, we will need to get the company key where we will be acting upon Request - GET https://my.jasminsoftware.com/api/(a)********/(b)***************/corepatterns/companies/odata?$select=CompanyKey&$filter=IsActive eq true and IsSystem eq false and IsDeleted eq false &$top=1&$orderby=CreatedOn Failed. StatusCode: 403, ReasonPhrase: 'Forbidden', Version: 1.1, Content: System.Net.Http.StreamContent, Headers: { Connection: keep-alive Request-Context: appId=cid-v1:07e06186-bc8d-4628-9f1a-465b9a0bb54e Date: Wed, 17 Mar 2021 09:07:38 GMT Server: Microsoft-IIS/10.0 X-Powered-By: ASP.NET X-Powered-By: ARR/3.0 Content-Length: 0 } Content: Error found! Unable to get the company Key. Ocorreram um ou mais erros. *(a): ClientID *(b): ClientSecret
    5 anos e 3 meses
    acciopinto-2
      O erro não diz exactamente o que se passa? "Start by requesting an Access Token Request" É preciso obter primeiro um token OAuth2
      5 anos e 3 semanas
      paulogaspar