Tax Invoice Client
class TaxInvoiceClient(apiSecret: String, apiBase: String = "https://api.portone.io", storeId: String? = null) : Closeable
API Secret을 사용해 포트원 API 클라이언트를 생성합니다.
Parameters
api Secret
포트원 API Secret입니다.
api Base
포트원 REST API 주소입니다. 기본값은 "https://api.portone.io"
입니다.
store Id
하위 상점에 대해 기능을 사용할 때 필요한 하위 상점의 ID입니다.
Functions
Link copied to clipboard
suspend fun attachB2bTaxInvoiceFile(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null, fileId: String)
세금계산서 파일 첨부
Link copied to clipboard
suspend fun cancelB2bTaxInvoiceIssuance(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null, memo: String? = null): CancelB2bTaxInvoiceIssuanceResponse
세금계산서 취소 (공급자에 의한 취소)
Link copied to clipboard
suspend fun cancelB2bTaxInvoiceRequest(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null, memo: String? = null): CancelB2bTaxInvoiceRequestResponse
세금계산서 역발행 요청 취소 (공급받는자에 의한 취소)
Link copied to clipboard
suspend fun createB2bFileUploadUrl(test: Boolean? = null, fileName: String): CreateB2bFileUploadUrlPayload
파일 업로드 URL 생성
Link copied to clipboard
suspend fun deleteB2bTaxInvoice(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null): DeleteB2bTaxInvoiceResponse
세금계산서 삭제
Link copied to clipboard
suspend fun deleteB2bTaxInvoiceAttachment(taxInvoiceKey: String, attachmentId: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null)
세금계산서 첨부파일 삭제
Link copied to clipboard
suspend fun downloadB2bTaxInvoicesSheet(filter: GetB2bTaxInvoicesBodyFilter? = null, fields: List<TaxInvoicesSheetField>? = null, test: Boolean? = null): String
세금계산서 엑셀 파일(csv) 다운로드
Link copied to clipboard
suspend fun draftB2bTaxInvoice(test: Boolean? = null, taxInvoice: B2bTaxInvoiceInput, modification: B2bTaxInvoiceModificationCreateBody? = null, memo: String? = null): DraftB2bTaxInvoiceResponse
세금계산서 임시 저장
Link copied to clipboard
suspend fun getB2bBulkTaxInvoice(bulkTaxInvoiceId: String, test: Boolean? = null): B2bBulkTaxInvoice
일괄 세금계산서 조회
Link copied to clipboard
suspend fun getB2bTaxInvoice(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null): B2bTaxInvoice
세금 계산서 조회
Link copied to clipboard
suspend fun getB2bTaxInvoiceAttachments(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null): GetB2bTaxInvoiceAttachmentsResponse
세금계산서 첨부파일 목록 조회
Link copied to clipboard
suspend fun getB2bTaxInvoicePdfDownloadUrl(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null): GetB2bTaxInvoicePdfDownloadUrlResponse
세금 계산서 PDF 다운로드 URL 조회
Link copied to clipboard
suspend fun getB2bTaxInvoicePopupUrl(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, includeMenu: Boolean? = null, test: Boolean? = null): GetB2bTaxInvoicePopupUrlResponse
세금 계산서 팝업 URL 조회
Link copied to clipboard
suspend fun getB2bTaxInvoicePrintUrl(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null): GetB2bTaxInvoicePrintUrlResponse
세금 계산서 프린트 URL 조회
Link copied to clipboard
suspend fun getB2bTaxInvoices(test: Boolean? = null, pageNumber: Int? = null, pageSize: Int? = null, filter: GetB2bTaxInvoicesBodyFilter? = null): GetB2bTaxInvoicesResponse
세금 계산서 다건조회
Link copied to clipboard
suspend fun issueB2bTaxInvoice(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null, memo: String? = null, emailSubject: String? = null): IssueB2bTaxInvoiceResponse
세금계산서 발행 승인
Link copied to clipboard
suspend fun issueB2bTaxInvoiceImmediately(test: Boolean? = null, taxInvoice: B2bTaxInvoiceInput, memo: String? = null, modification: B2bTaxInvoiceModificationCreateBody? = null): IssueB2bTaxInvoiceImmediatelyResponse
세금계산서 즉시 정발행
Link copied to clipboard
suspend fun refuseB2bTaxInvoiceRequest(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null, memo: String? = null): RefuseB2bTaxInvoiceRequestResponse
세금계산서 역발행 요청 거부
Link copied to clipboard
suspend fun requestB2bTaxInvoice(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null): RequestB2bTaxInvoiceResponse
세금계산서 역발행 요청
Link copied to clipboard
suspend fun requestB2bTaxInvoiceReverseIssuance(test: Boolean? = null, taxInvoice: B2bTaxInvoiceInput, memo: String? = null, modification: B2bTaxInvoiceModificationCreateBody? = null): RequestB2bTaxInvoiceReverseIssuanceResponse
세금계산서 역발행 즉시 요청
Link copied to clipboard
suspend fun sendToNtsB2bTaxInvoice(taxInvoiceKey: String, brn: String? = null, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, test: Boolean? = null): SendToNtsB2bTaxInvoiceResponse
세금계산서 국세청 즉시 전송
Link copied to clipboard
suspend fun updateB2bTaxInvoiceDraft(test: Boolean? = null, brn: String? = null, taxInvoiceKey: String, taxInvoiceKeyType: B2bTaxInvoiceKeyType? = null, taxInvoice: B2bTaxInvoiceInput, memo: String? = null): UpdateB2bTaxInvoiceDraftResponse
세금계산서 임시저장 수정