Did not get OrderProduct via api - response 403 code

Tuấn ÁnhTuấn Ánh Posts: 4Member
edited January 12 in Development
Hi Lightspeed development team,
Sometime I cannot call api to get OrderProduct of some order but I get info of shop is ok. 
Example:
request: `https://...:[email protected]/nl/orders/../products.json`
 response: 
```{
  "error": {
    "code": 403,
    "method": "READ",
    "request": "/nl/orders/.../products.json",
    "message": "The server understood the request, but is refusing to fulfill it."
  }
}```
What orders or requests is wrong? Is it because I registered a lack of order scope? And how can I fix it.
So thanks
Post edited by Tuấn Ánh on

1 comment

  • TimBloembergenTimBloembergen Posts: 37Moderator, Lightspeed Staff moderator
    Hi Tuan,

    You are receiving this error because the API key that you are using does not have the permissions enabled in order to do that call. You can either enable these permissions within the partner portal if you are a partner, if you are using a single shop API key you can reply on the email which included your api key.
    Tim Bloembergen
    API Integrations Specialist
    Lightspeed HQ
Sign In or Register to comment.