/* * 취소 현금영수증 데이터를 팝빌에 저장과 동시에 발행하여 "발행완료" 상태로 처리합니다. * - 현금영수증 국세청 전송 정책 : https://docs.popbill.com/cashbill/ntsSendPolicy?lang=dotnetcore * - https://docs.popbill.com/cashbill/dotnetcore/api#RevokeRegistIssue */ public IActionResult RevokeRegistIssue() { // 현금영수증 문서번호, 사업자별로 중복되지 않도록 문서번호 할당 // 1~24자리 영문,숫자,'-','_' 조합 구성 string mgtKey = "20220527-002"; // 원본 현금영수증 국세청승인번호 string orgConfirmNum = "TB0000015"; // 원본현금영수증 거래일자 (날짜형식yyyyMMdd) string orgTradeDate = "20220501"; try { var response = _cashbillService.RevokeRegistIssue(corpNum, mgtKey, orgConfirmNum, orgTradeDate); return(View("IssueResponse", response)); } catch (PopbillException pe) { return(View("Exception", pe)); } }