{"action":"created","issue":{"url":"https://api.github.com/repos/hmrc/vat-api/issues/298","repository_url":"https://api.github.com/repos/hmrc/vat-api","labels_url":"https://api.github.com/repos/hmrc/vat-api/issues/298/labels{/name}","comments_url":"https://api.github.com/repos/hmrc/vat-api/issues/298/comments","events_url":"https://api.github.com/repos/hmrc/vat-api/issues/298/events","html_url":"https://github.com/hmrc/vat-api/issues/298","id":368635452,"node_id":"MDU6SXNzdWUzNjg2MzU0NTI=","number":298,"title":"ChargeRefNumber","user":{"login":"seurrep","id":13554307,"node_id":"MDQ6VXNlcjEzNTU0MzA3","avatar_url":"https://avatars2.githubusercontent.com/u/13554307?v=4","gravatar_id":"","url":"https://api.github.com/users/seurrep","html_url":"https://github.com/seurrep","followers_url":"https://api.github.com/users/seurrep/followers","following_url":"https://api.github.com/users/seurrep/following{/other_user}","gists_url":"https://api.github.com/users/seurrep/gists{/gist_id}","starred_url":"https://api.github.com/users/seurrep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seurrep/subscriptions","organizations_url":"https://api.github.com/users/seurrep/orgs","repos_url":"https://api.github.com/users/seurrep/repos","events_url":"https://api.github.com/users/seurrep/events{/privacy}","received_events_url":"https://api.github.com/users/seurrep/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-10T12:12:42Z","updated_at":"2018-10-17T12:37:48Z","closed_at":null,"author_association":"NONE","body":"There have been a few occasions now where the ChargeRefNumber field has not been included in the output from submitting a return. This is despite documentation detailing it as one of the fields that ought to be returned. Less than an hour ago for example I got this returned from the API after submitting a VAT return:\r\n\r\n`{\"processingDate\":\"2018-10-10T11:34:19.458Z\",\"paymentIndicator\":\"BANK\",\"formBundleNumber\":\"113021070647\"}`\r\n\r\nIs this omission intentional?"},"comment":{"url":"https://api.github.com/repos/hmrc/vat-api/issues/comments/430611216","html_url":"https://github.com/hmrc/vat-api/issues/298#issuecomment-430611216","issue_url":"https://api.github.com/repos/hmrc/vat-api/issues/298","id":430611216,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDYxMTIxNg==","user":{"login":"jacobbrownlow","id":35334115,"node_id":"MDQ6VXNlcjM1MzM0MTE1","avatar_url":"https://avatars3.githubusercontent.com/u/35334115?v=4","gravatar_id":"","url":"https://api.github.com/users/jacobbrownlow","html_url":"https://github.com/jacobbrownlow","followers_url":"https://api.github.com/users/jacobbrownlow/followers","following_url":"https://api.github.com/users/jacobbrownlow/following{/other_user}","gists_url":"https://api.github.com/users/jacobbrownlow/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobbrownlow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobbrownlow/subscriptions","organizations_url":"https://api.github.com/users/jacobbrownlow/orgs","repos_url":"https://api.github.com/users/jacobbrownlow/repos","events_url":"https://api.github.com/users/jacobbrownlow/events{/privacy}","received_events_url":"https://api.github.com/users/jacobbrownlow/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T12:37:48Z","updated_at":"2018-10-17T12:37:48Z","author_association":"CONTRIBUTOR","body":"Hi @lukaszszczygiel-sage \r\n\r\nJust to clarify `paymentIndicator` can be missing. The documentation provided states:\r\n\r\n`paymentIndicator`: Is DD if the netVatDue value is a debit and HMRC holds a Direct Debit Instruction for the client. Is BANK if the netVatDue value is a credit and HMRC holds the client’s bank data. Otherwise not present. Limited to the following possible values: DD, BANK\r\n\r\n`chargeRefNumber`: The charge reference number is returned, only if the netVatDue value is a debit.\r\n\r\nAdditionally we have updated the sandbox environment to not return `chargeRefNumber` if the `paymentIndicator` is \"BANK\".\r\n\r\nRegards, Jacob"}}
{"actor":{"display_login":"jacobbrownlow"}}