{"action":"created","issue":{"url":"https://api.github.com/repos/cgrates/cgrates/issues/409","repository_url":"https://api.github.com/repos/cgrates/cgrates","labels_url":"https://api.github.com/repos/cgrates/cgrates/issues/409/labels{/name}","comments_url":"https://api.github.com/repos/cgrates/cgrates/issues/409/comments","events_url":"https://api.github.com/repos/cgrates/cgrates/issues/409/events","html_url":"https://github.com/cgrates/cgrates/issues/409","id":143338838,"number":409,"title":"Can't seem to return all accounts for a domain","user":{"login":"noahmehl","id":263452,"avatar_url":"https://avatars.githubusercontent.com/u/263452?v=3","gravatar_id":"","url":"https://api.github.com/users/noahmehl","html_url":"https://github.com/noahmehl","followers_url":"https://api.github.com/users/noahmehl/followers","following_url":"https://api.github.com/users/noahmehl/following{/other_user}","gists_url":"https://api.github.com/users/noahmehl/gists{/gist_id}","starred_url":"https://api.github.com/users/noahmehl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahmehl/subscriptions","organizations_url":"https://api.github.com/users/noahmehl/orgs","repos_url":"https://api.github.com/users/noahmehl/repos","events_url":"https://api.github.com/users/noahmehl/events{/privacy}","received_events_url":"https://api.github.com/users/noahmehl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"rif","id":461577,"avatar_url":"https://avatars.githubusercontent.com/u/461577?v=3","gravatar_id":"","url":"https://api.github.com/users/rif","html_url":"https://github.com/rif","followers_url":"https://api.github.com/users/rif/followers","following_url":"https://api.github.com/users/rif/following{/other_user}","gists_url":"https://api.github.com/users/rif/gists{/gist_id}","starred_url":"https://api.github.com/users/rif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rif/subscriptions","organizations_url":"https://api.github.com/users/rif/orgs","repos_url":"https://api.github.com/users/rif/repos","events_url":"https://api.github.com/users/rif/events{/privacy}","received_events_url":"https://api.github.com/users/rif/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2016-03-24T19:34:29Z","updated_at":"2016-03-25T16:04:12Z","closed_at":null,"body":"Tried the following JSON http transactions:\r\n\r\nroot@cgrates-test-01:~# curl -X POST --data '{\"id\": 1, \"method\": \"ApierV2.SetAccount\", \"params\": [{\"Tenant\": \"domain.com\", \"Account\": \"5c1b474f-3a10-48d8-89a4-395a94a95a3c\",\"ActionPlanId\":\"\", \"ActionTriggersId\":\"\", \"AllowNegative\":true, \"Disabled\":false, \"ReloadScheduler\":true}]}' http://localhost:2080/jsonrpc\r\n{\"id\":1,\"result\":\"OK\",\"error\":null}\r\nroot@cgrates-test-01:~# curl -X POST --data '{\"id\": 2, \"method\": \"ApierV2.SetAccount\", \"params\": [{\"Tenant\": \"domain.com\", \"Account\": \"c344134c-9e31-40ba-808a-d6c0b4e689fc\",\"ActionPlanId\":\"\", \"ActionTriggersId\":\"\", \"AllowNegative\":true, \"Disabled\":false, \"ReloadScheduler\":true}]}' http://localhost:2080/jsonrpc\r\n{\"id\":2,\"result\":\"OK\",\"error\":null}\r\nroot@cgrates-test-01:~# curl -X POST --data '{\"id\": 3, \"method\": \"ApierV2.GetAccounts\", \"params\": [{\"Tenant\": \"domain.com\", \"AccountIds\":[], \"Offset\":0, \"Limit\":100}]}' http://localhost:2080/jsonrpc\r\n{\"id\":3,\"result\":null,\"error\":null}\r\nroot@cgrates-test-01:~# curl -X POST --data '{\"id\": 4, \"method\": \"ApierV2.GetAccounts\", \"params\": [{\"Tenant\": \"domain.com\", \"AccountIds\":[\"5c1b474f-3a10-48d8-89a4-395a94a95a3c\",\"c344134c-9e31-40ba-808a-d6c0b4e689fc\"], \"Offset\":0, \"Limit\":100}]}' http://localhost:2080/jsonrpc\r\n{\"id\":4,\"result\":[{\"ID\":\"domain.com:5c1b474f-3a10-48d8-89a4-395a94a95a3c\",\"BalanceMap\":{},\"UnitCounters\":{},\"ActionTriggers\":[],\"AllowNegative\":true,\"Disabled\":false},{\"ID\":\"domain.com:c344134c-9e31-40ba-808a-d6c0b4e689fc\",\"BalanceMap\":{},\"UnitCounters\":{},\"ActionTriggers\":[],\"AllowNegative\":true,\"Disabled\":false}],\"error\":null}\r\n\r\n\r\nIt's id:3 that's a problem.  I'm probably doing something wrong here?\r\n\r\nRunning version: cgrates_0.9.1~rc8_amd64.deb"},"comment":{"url":"https://api.github.com/repos/cgrates/cgrates/issues/comments/201345140","html_url":"https://github.com/cgrates/cgrates/issues/409#issuecomment-201345140","issue_url":"https://api.github.com/repos/cgrates/cgrates/issues/409","id":201345140,"user":{"login":"rif","id":461577,"avatar_url":"https://avatars.githubusercontent.com/u/461577?v=3","gravatar_id":"","url":"https://api.github.com/users/rif","html_url":"https://github.com/rif","followers_url":"https://api.github.com/users/rif/followers","following_url":"https://api.github.com/users/rif/following{/other_user}","gists_url":"https://api.github.com/users/rif/gists{/gist_id}","starred_url":"https://api.github.com/users/rif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rif/subscriptions","organizations_url":"https://api.github.com/users/rif/orgs","repos_url":"https://api.github.com/users/rif/repos","events_url":"https://api.github.com/users/rif/events{/privacy}","received_events_url":"https://api.github.com/users/rif/received_events","type":"User","site_admin":false},"created_at":"2016-03-25T16:04:12Z","updated_at":"2016-03-25T16:04:12Z","body":"You can get the same deb file and reinstall it."}}