{"action":"created","issue":{"url":"https://api.github.com/repos/Shopify/shopify_api/issues/306","repository_url":"https://api.github.com/repos/Shopify/shopify_api","labels_url":"https://api.github.com/repos/Shopify/shopify_api/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/Shopify/shopify_api/issues/306/comments","events_url":"https://api.github.com/repos/Shopify/shopify_api/issues/306/events","html_url":"https://github.com/Shopify/shopify_api/issues/306","id":176140312,"number":306,"title":"Dormant shops returning wrong code","user":{"login":"orenmazor","id":384279,"avatar_url":"https://avatars.githubusercontent.com/u/384279?v=3","gravatar_id":"","url":"https://api.github.com/users/orenmazor","html_url":"https://github.com/orenmazor","followers_url":"https://api.github.com/users/orenmazor/followers","following_url":"https://api.github.com/users/orenmazor/following{/other_user}","gists_url":"https://api.github.com/users/orenmazor/gists{/gist_id}","starred_url":"https://api.github.com/users/orenmazor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orenmazor/subscriptions","organizations_url":"https://api.github.com/users/orenmazor/orgs","repos_url":"https://api.github.com/users/orenmazor/repos","events_url":"https://api.github.com/users/orenmazor/events{/privacy}","received_events_url":"https://api.github.com/users/orenmazor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-10T00:06:28Z","updated_at":"2016-09-10T00:23:40Z","closed_at":null,"body":"Hey folks,\r\n\r\nWeird case I just came across. \r\n\r\nIf you query the checkouts of a shop that has gone dormant, you get a 500 \r\n\r\n```\r\nGET https://snowdevil.myshopify.com:443/admin/checkouts/count.json?status=open&updated_at_min=2016-09-08T00%3A03%3A31%2B00%3A00\r\nI, [2016-09-10T00:03:32.269063 #14226]  INFO -- : --> 500 Internal Server Error 37 (162.4ms)\r\nI, [2016-09-10T00:03:32.269174 #14226]  INFO -- : Headers: {\"Accept\"=>\"application/json\", \"User-Agent\"=>\"ShopifyAPI/4.3.0 ActiveResource/4.1.0 Ruby/2.3.1\", \"X-Shopify-Access-Token\"=>\"OxDEADBEEF\"}\r\nI, [2016-09-10T00:03:32.269198 #14226]  INFO -- : Response:\r\n{\"errors\":\"Checkout System disabled\"}\r\n````\r\n\r\nwhich comes up as an `ActiveResource::ServerError`. this seems weird to me because its not actually a server error. its a merchant error, which would probably be more along the lines of a 4xx. I'd pick 402, as its the closest (I mean, the shop is dormant…)\r\n\r\nthoughts?\r\n\r\n/cc @kevinhughes27 @maartenvg "},"comment":{"url":"https://api.github.com/repos/Shopify/shopify_api/issues/comments/246074134","html_url":"https://github.com/Shopify/shopify_api/issues/306#issuecomment-246074134","issue_url":"https://api.github.com/repos/Shopify/shopify_api/issues/306","id":246074134,"user":{"login":"orenmazor","id":384279,"avatar_url":"https://avatars.githubusercontent.com/u/384279?v=3","gravatar_id":"","url":"https://api.github.com/users/orenmazor","html_url":"https://github.com/orenmazor","followers_url":"https://api.github.com/users/orenmazor/followers","following_url":"https://api.github.com/users/orenmazor/following{/other_user}","gists_url":"https://api.github.com/users/orenmazor/gists{/gist_id}","starred_url":"https://api.github.com/users/orenmazor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orenmazor/subscriptions","organizations_url":"https://api.github.com/users/orenmazor/orgs","repos_url":"https://api.github.com/users/orenmazor/repos","events_url":"https://api.github.com/users/orenmazor/events{/privacy}","received_events_url":"https://api.github.com/users/orenmazor/received_events","type":"User","site_admin":false},"created_at":"2016-09-10T00:23:40Z","updated_at":"2016-09-10T00:23:40Z","body":"Yup, we do our stuff in UTC.\r\n\r\na sample request ID is `de997ad7-56df-4fa7-aae3-e96163dabb50` for a sample shop `8924546`"}}
{"actor":{"display_login":"orenmazor"}}