{"action":"created","issue":{"url":"https://api.github.com/repos/hmrc/vat-api/issues/301","repository_url":"https://api.github.com/repos/hmrc/vat-api","labels_url":"https://api.github.com/repos/hmrc/vat-api/issues/301/labels{/name}","comments_url":"https://api.github.com/repos/hmrc/vat-api/issues/301/comments","events_url":"https://api.github.com/repos/hmrc/vat-api/issues/301/events","html_url":"https://github.com/hmrc/vat-api/issues/301","id":369474991,"node_id":"MDU6SXNzdWUzNjk0NzQ5OTE=","number":301,"title":"CLIENT_OR_AGENT_NOT_AUTHORISED when Retrieving Liabilities","user":{"login":"dennysfl","id":43678059,"node_id":"MDQ6VXNlcjQzNjc4MDU5","avatar_url":"https://avatars3.githubusercontent.com/u/43678059?v=4","gravatar_id":"","url":"https://api.github.com/users/dennysfl","html_url":"https://github.com/dennysfl","followers_url":"https://api.github.com/users/dennysfl/followers","following_url":"https://api.github.com/users/dennysfl/following{/other_user}","gists_url":"https://api.github.com/users/dennysfl/gists{/gist_id}","starred_url":"https://api.github.com/users/dennysfl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennysfl/subscriptions","organizations_url":"https://api.github.com/users/dennysfl/orgs","repos_url":"https://api.github.com/users/dennysfl/repos","events_url":"https://api.github.com/users/dennysfl/events{/privacy}","received_events_url":"https://api.github.com/users/dennysfl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-12T09:38:18Z","updated_at":"2018-11-15T21:48:12Z","closed_at":null,"author_association":"NONE","body":"Hi all,\r\n\r\nCould you please help me with a retrieve request?\r\n\r\nAfter getting a token I am trying to retrieve liabilities using APIs. However I get this message: **{\"code\":\"CLIENT_OR_AGENT_NOT_AUTHORISED\",\"message\":\"The client and/or agent is not authorised.\"}**\r\n\r\n\r\nI am sending this information: https://test-api.service.hmrc.gov.uk/organisations/vat/666429721/liabilities?&from=2017-04-05&to=2017-12-21\r\n and I am sending as header: \"Authorization\", \"Bearer [Token]\"\r\n\r\n\r\nThis VAT Number is for the company I created in order to test. So I did use the user and pass of this company to get a code and then to get a token. So I believe the VAT Number is tied with the code and the token. But I don’t know if I also need to send something. In the API documentation (https://developer.service.hmrc.gov.uk/api-documentation/docs/api/service/vat-api/1.0#_retrieve-vat-liabilities_get_accordion) I can’t see it.\r\n\r\nThanks in advanced,\r\n\r\nDenny"},"comment":{"url":"https://api.github.com/repos/hmrc/vat-api/issues/comments/439202282","html_url":"https://github.com/hmrc/vat-api/issues/301#issuecomment-439202282","issue_url":"https://api.github.com/repos/hmrc/vat-api/issues/301","id":439202282,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTIwMjI4Mg==","user":{"login":"adamdavi3s","id":10837475,"node_id":"MDQ6VXNlcjEwODM3NDc1","avatar_url":"https://avatars0.githubusercontent.com/u/10837475?v=4","gravatar_id":"","url":"https://api.github.com/users/adamdavi3s","html_url":"https://github.com/adamdavi3s","followers_url":"https://api.github.com/users/adamdavi3s/followers","following_url":"https://api.github.com/users/adamdavi3s/following{/other_user}","gists_url":"https://api.github.com/users/adamdavi3s/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdavi3s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdavi3s/subscriptions","organizations_url":"https://api.github.com/users/adamdavi3s/orgs","repos_url":"https://api.github.com/users/adamdavi3s/repos","events_url":"https://api.github.com/users/adamdavi3s/events{/privacy}","received_events_url":"https://api.github.com/users/adamdavi3s/received_events","type":"User","site_admin":false},"created_at":"2018-11-15T21:48:12Z","updated_at":"2018-11-15T21:48:12Z","author_association":"NONE","body":"Unless it’s changed in the last few days you can’t use the GUI user in the MTD Vat sandbox \r\n\r\nYou need to create a user by calling the API "}}
{"actor":{"display_login":"adamdavi3s"}}