Topic: Access Denied (Error code 7) Issue When Creating Account
Hi there,
I am trying to create account using the API from a Laravel web app project.
URL: https://hst-api.wialon.us/wialon/ajax.h … ;sid=mysid
Method: Post
Parms: params: {"creatorId":"123456789","name":"test2221134234","skipCreatorCheck":0,"dataFlags":5}
Response:
{"item":{"nm":"test2221134234","cls":3,"id":123456789,"crt":123456789,"bact":123456789,"mu":1,"bpact":123456789,"uacl":12345678901234},"flags":5}
Then I pass resource id: 123456789 to the create account API to create account as shown below.
URL: https://hst-api.wialon.us/wialon/ajax.h … ;sid=mysid
Method: Post
params: {"itemId":123456789,"plan":"mypaymentplan-1y"}
Response: {"error":7}
Which is access denied error.
Can anyone here please give me directions which level of access is getting denied for this scenario? The token I am using is working to create/delete units and users.
Just to be clear. I have given full access to the user after creating one.
In case my query is not yet clear, Please let me know, and I will try to provide more details. Thanks in advance!