{"action":"created","issue":{"url":"https://api.github.com/repos/hmrc/vat-api/issues/172","repository_url":"https://api.github.com/repos/hmrc/vat-api","labels_url":"https://api.github.com/repos/hmrc/vat-api/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/hmrc/vat-api/issues/172/comments","events_url":"https://api.github.com/repos/hmrc/vat-api/issues/172/events","html_url":"https://github.com/hmrc/vat-api/issues/172","id":330290204,"node_id":"MDU6SXNzdWUzMzAyOTAyMDQ=","number":172,"title":"Submit VAT Return seems to be reporting false errors","user":{"login":"MKoppJones","id":7917238,"node_id":"MDQ6VXNlcjc5MTcyMzg=","avatar_url":"https://avatars2.githubusercontent.com/u/7917238?v=4","gravatar_id":"","url":"https://api.github.com/users/MKoppJones","html_url":"https://github.com/MKoppJones","followers_url":"https://api.github.com/users/MKoppJones/followers","following_url":"https://api.github.com/users/MKoppJones/following{/other_user}","gists_url":"https://api.github.com/users/MKoppJones/gists{/gist_id}","starred_url":"https://api.github.com/users/MKoppJones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MKoppJones/subscriptions","organizations_url":"https://api.github.com/users/MKoppJones/orgs","repos_url":"https://api.github.com/users/MKoppJones/repos","events_url":"https://api.github.com/users/MKoppJones/events{/privacy}","received_events_url":"https://api.github.com/users/MKoppJones/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-07T14:10:28Z","updated_at":"2018-06-07T14:36:05Z","closed_at":"2018-06-07T14:36:05Z","author_association":"NONE","body":"Hi,\r\n\r\nCurrently sending the following payload through when submitting a VAT return\r\n\r\n```json\r\n{\r\n  \"periodKey\": \"0003\",\r\n  \"vatDueSales\": 142980.12,\r\n  \"vatDueAcquisitions\": 210234.65,\r\n  \"totalVatDue\": 353214.77,\r\n  \"vatReclaimedCurrPeriod\": 210234.65,\r\n  \"netVatDue\": 142980.12,\r\n  \"totalValueSalesExVAT\": 750150.12,\r\n  \"totalValuePurchasesExVAT\": 1149793.32,\r\n  \"totalValueGoodsSuppliedExVAT\": 750150.12,\r\n  \"totalAcquisitionsExVAT\": 1149793.32,\r\n  \"finalised\": true\r\n}\r\n```\r\n\r\nIt is reporting the following error\r\n\r\n```json\r\n{\r\n\t\"code\": \"INVALID_REQUEST\",\r\n\t\"message\": \"Invalid request\",\r\n\t\"errors\": [{\r\n\t\t\"code\": \"INVALID_MONETARY_AMOUNT\",\r\n\t\t\"message\": \"amount should be a monetary value (to 2 decimal places), between -9,999,999,999,999.00 and 9,999,999,999,999.00\",\r\n\t\t\"path\": \"/totalAcquisitionsExVAT\"\r\n\t},\r\n\t{\r\n\t\t\"code\": \"INVALID_MONETARY_AMOUNT\",\r\n\t\t\"message\": \"amount should be a monetary value (to 2 decimal places), between -9,999,999,999,999.00 and 9,999,999,999,999.00\",\r\n\t\t\"path\": \"/totalValueGoodsSuppliedExVAT\"\r\n\t},\r\n\t{\r\n\t\t\"code\": \"INVALID_MONETARY_AMOUNT\",\r\n\t\t\"message\": \"amount should be a monetary value (to 2 decimal places), between -9,999,999,999,999.00 and 9,999,999,999,999.00\",\r\n\t\t\"path\": \"/totalValuePurchasesExVAT\"\r\n\t},\r\n\t{\r\n\t\t\"code\": \"INVALID_MONETARY_AMOUNT\",\r\n\t\t\"message\": \"amount should be a monetary value (to 2 decimal places), between -9,999,999,999,999.00 and 9,999,999,999,999.00\",\r\n\t\t\"path\": \"/totalValueSalesExVAT\"\r\n\t}]\r\n}\r\n```\r\n\r\nHonestly, this doesn't make any sense.\r\n\r\nAny known issues here?\r\nAnything glaringly wrong with the payload?"},"comment":{"url":"https://api.github.com/repos/hmrc/vat-api/issues/comments/395443909","html_url":"https://github.com/hmrc/vat-api/issues/172#issuecomment-395443909","issue_url":"https://api.github.com/repos/hmrc/vat-api/issues/172","id":395443909,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTQ0MzkwOQ==","user":{"login":"MarkAKelly","id":21219364,"node_id":"MDQ6VXNlcjIxMjE5MzY0","avatar_url":"https://avatars2.githubusercontent.com/u/21219364?v=4","gravatar_id":"","url":"https://api.github.com/users/MarkAKelly","html_url":"https://github.com/MarkAKelly","followers_url":"https://api.github.com/users/MarkAKelly/followers","following_url":"https://api.github.com/users/MarkAKelly/following{/other_user}","gists_url":"https://api.github.com/users/MarkAKelly/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkAKelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkAKelly/subscriptions","organizations_url":"https://api.github.com/users/MarkAKelly/orgs","repos_url":"https://api.github.com/users/MarkAKelly/repos","events_url":"https://api.github.com/users/MarkAKelly/events{/privacy}","received_events_url":"https://api.github.com/users/MarkAKelly/received_events","type":"User","site_admin":false},"created_at":"2018-06-07T14:36:04Z","updated_at":"2018-06-07T14:36:04Z","author_association":"CONTRIBUTOR","body":"@MKoppJones \r\n\r\nYou certainly can, I'll pass it on to our content designer (I know she's been looking at this specific issue recently).\r\n\r\nI'll close this issue but if you have any other issues regarding this feel free to reopen!"}}
{"actor":{"display_login":"MarkAKelly"}}