Estou Tendo erro 'HTTP/1.1 403 Forbidden'. ao executar a função 'https://empresa.vtexcommercestable.com.br/api/oms/pvt/orders/?f_status=payment-approved&per_page=1000' Alguém tem alguma ideia do que pode estar acontecendo?

uma observação: Até o dia 26/06/2018 estava funcionando normalmente.

Testei em uma loja e funcionou perfeitamente

@Nathan Prestes​ eu cheguei a testar o ambiente de outro cliente meu e também está funcionando normal. Porém não consigo entender porque este cliente está dando problema. Será que o APPkey e APPToken pode ter expirado? existe isso?

Aconselho que crie um novo AppKey e Token para testar. Segue um artigo sobre diferença entre 401 e 403 caso queira ler:

There's a problem with 401 Unauthorized, the HTTP status code for authentication errors. And that’s just it: it’s for authentication, not authorization. Receiving a 401 response is the server telling you, “you aren’t authenticated–either not authenticated at all or authenticated incorrectly–but please reauthenticate and try again.” To help you out, it will always include a WWW-Authenticate header that describes how to authenticate. This is a response generally returned by your web server, not your web application. It’s also something very temporary; the server is asking you to try again. So, for authorization I use the 403 Forbidden response. It’s permanent, it’s tied to my application logic, and it’s a more concrete response than a 401. Receiving a 403 response is the server telling you, “I’m sorry. I know who you are–I believe who you say you are–but you just don’t have permission to access this resource. Maybe if you ask the system administrator nicely, you’ll get permission. But please don’t bother me again until your predicament changes.” In summary, a 401 Unauthorized response should be used for missing or bad authentication, and a 403 Forbidden response should be used afterwards, when the user is authenticated but isn’t authorized to perform the requested operation on the given resource.

https://stackoverflow.com/questions/3297048/403-forbidden-vs-401-unauthorized-http-responses

1 Like

@Nathan Prestes​ Obrigado. Gerei um Novo APPKey e Token e funcionou.

Att,