Check the information
1. GetInfo - Check the status of an e-Tax invoice
- This API checks the status and summarized information of a single tax invoice.
- Check variable 'stateCode' of returned TaxinvoiceInfo to confirm status of e-Tax invoice.
TaxinvoiceInfo getInfo(String CorpNum, MgtKeyType KeyType, String MgtKey) throws PopbillException
Parameters
Parameters
| No. | Field | Type | Length | Mandatory | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CorpNum | String | 10 | Y |
Business registration number
10-digits except (‘-’)
|
|||||||||||
| KeyType | MgtKeyType | - | Y |
Type of the e-Tax invoice
SELL sales
|
|||||||||||
|
MgtKeyType
|
|||||||||||||||
| MgtKey | String | 24 | Y | Document ID | |||||||||||
Return
TaxinvoiceInfo
| No. | Field | Type | Length | Description |
|---|---|---|---|---|
| itemKey | String | 18 | Identification number assigned by POPBiLL | |
| taxType | String | 2 |
Taxation type
과세taxable
영세zero-rated
면세exempted
|
|
| writeDate | String | 8 |
Date of preparation
format : yyyyMMdd
|
|
| regDT | String | 14 |
Date of registration as a draft
format : yyyyMMddHHmmss
|
|
| issueType | String | 3 |
Issuance type
정발행general issuance
|
|
| supplyCostTotal | String | 18 |
Sum of supply values
integer values(+/-) only
decimals will be automatically truncated |
|
| taxTotal | String | 18 |
Sum of tax amount
integer values(+/-) only
decimals will be automatically truncated |
|
| purposeType | String | 2 |
Payments received or not
영수payment received
청구payment not received
없음none
|
|
| issueDT | String | 14 |
Date and time of the issuance
format : yyyyMMddHHmmss
|
|
| lateIssueYN | String | - |
Whether e-Tax invoice is issued after the due or not
trueissued after the due date
falseissued within the due date
|
|
| openYN | boolean | - |
Whether a buyer viewed an issued e-Tax invoice via notification mail or not
trueviewed
falsedid not view
The status is changed to 'Checked' when buyer checks the details of e-Tax invoice via the notification mail clicking the button on the bottom
|
|
| openDT | String | 14 |
Date and time of checking an e-Tax invoice
format : yyyyMMddHHmmss
|
|
| stateMemo | String | 200 | Memo about status information | |
| stateCode | Integer | 3 |
Status code
refer to [Status Code]
|
|
| stateDT | String | 14 |
Date and time of the status change
format : yyyyMMddHHmmss
|
|
| ntsconfirmNum | String | 24 |
NTS confirmation number
POPBiLL automatically assigns this when issuing a tax invoice.
|
|
| ntsresult | String | 6 | Filing result from the NTS | |
| ntssendDT | String | 14 |
Date and time of the NTS filing
format : yyyyMMddHHmmss
|
|
| ntsresultDT | String | 14 |
Date and time of receiving NTS filing result
format : yyyyMMddHHmmss
|
|
| ntssendErrCode | String | 6 |
NTS filing result code
Refer to [ntssendErrCode]
|
|
| modifyCode | Integer | 1 |
Reason for revocation
Refer to [Revised Invoice]
|
|
| interOPYN | boolean | - |
Whether e-Tax invoice is issued by API or not
trueissued via API
falseissued via POPBiLL service website
|
|
| invoicerCorpName | String | 200 | [Seller] company name | |
| invoicerCorpNum | String | 10 |
[Seller] business registration number
10 digits except a hyphen(‘-’)
|
|
| invoicerMgtKey | String | 24 |
[Seller] document ID
a unique value that can be entered with alphanumeric values and special characters(‘-’, ‘_’)
|
|
| invoicerPrintYN | boolean | - |
[Seller] whether e-Tax invoice is printed or not
trueprinted
falsenot printed
|
|
| invoiceeCorpName | String | 200 | [Buyer] company name | |
| invoiceeCorpNum | String | 10 |
[Buyer] business registration number
- if {invoiceeType} = 사업자(business proprietor type) : business registration number, 10 digits except a hyphen(‘-’) - if {invoiceeType} = 개인(individual type) : resident registration number, 13 digits except a hyphen(‘-’) - if {invoiceeType} = 외국인(foreigner type) : 9999999999999 |
|
| invoiceePrintYN | boolean | - |
[Buyer] whether e-Tax invoice is printed or not
trueprinted
falsenot printed
|
|
| closeDownState | Integer | 1 |
[Buyer] status of the business
|
|
| closeDownStateDate | String | 8 |
[Buyer] date of the business closure
format : yyyyMMdd
|
Throws
PopbillException
| No. | Field | Type | Length | Description |
|---|---|---|---|---|
| code | long | - |
API response code
8 digits code that starts with (‘-’) [Error Code]
|
|
| message | String | - | Error message for any failed API process |
2. GetInfos - Check the status of bulk submission for e-tax invoices
- This API checks the status and summarized information of multiple e-Tax invoices. (Maximum : 1,000 invoices)
- Check variable 'stateCode' of returned TaxinvoiceInfo to confirm status of e-Tax invoice.
TaxinvoiceInfo[] getInfos(String CorpNum, MgtKeyType KeyType, String[] MgtKeyList) throws PopbillException
- We recommend to use this API when a user implements the list of e-Tax invoices with document IDs.
Parameters
Parameters
| No. | Field | Type | Length | Mandatory | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CorpNum | String | 10 | Y |
Business registration number
10-digits except (‘-’)
|
|||||||||||
| KeyType | MgtKeyType | - | Y |
Type of the e-Tax invoice
SELL sales
|
|||||||||||
|
MgtKeyType
|
|||||||||||||||
| MgtKeyList | String[ ] | Y |
Document ID of tax invoice to view
maximum : 1,000 invoices
|
||||||||||||
Return
TaxinvoiceInfo
| No. | Field | Type | Length | Description |
|---|---|---|---|---|
| itemKey | String | 18 | Identification number assigned by POPBiLL | |
| taxType | String | 2 |
Taxation type
과세taxable
영세zero-rated
면세exempted
|
|
| writeDate | String | 8 |
Date of preparation
format : yyyyMMdd
|
|
| regDT | String | 14 |
Date of registration as a draft
format : yyyyMMddHHmmss
|
|
| issueType | String | 3 |
Issuance type
정발행general issuance
|
|
| supplyCostTotal | String | 18 |
Sum of supply values
integer values(+/-) only
decimals will be automatically truncated |
|
| taxTotal | String | 18 |
Sum of tax amount
integer values(+/-) only
decimals will be automatically truncated |
|
| purposeType | String | 2 |
Payments received or not
영수payment received
청구payment not received
없음none
|
|
| issueDT | String | 14 |
Date and time of the issuance
format : yyyyMMddHHmmss
|
|
| lateIssueYN | String | - |
Whether e-Tax invoice is issued after the due or not
trueissued after the due date
falseissued within the due date
|
|
| openYN | boolean | - |
Whether a buyer viewed an issued e-Tax invoice via notification mail or not
trueviewed
falsedid not view
The status is changed to 'Checked' when buyer checks the details of e-Tax invoice via the notification mail clicking the button on the bottom
|
|
| openDT | String | 14 |
Date and time of checking an e-Tax invoice
format : yyyyMMddHHmmss
|
|
| stateMemo | String | 200 | Memo about status information | |
| stateCode | Integer | 3 |
Status code
refer to [Status Code]
|
|
| stateDT | String | 14 |
Date and time of the status change
format : yyyyMMddHHmmss
|
|
| ntsconfirmNum | String | 24 |
NTS confirmation number
POPBiLL automatically assigns this when issuing a tax invoice.
|
|
| ntsresult | String | 6 | Filing result from the NTS | |
| ntssendDT | String | 14 |
Date and time of the NTS filing
format : yyyyMMddHHmmss
|
|
| ntsresultDT | String | 14 |
Date and time of receiving NTS filing result
format : yyyyMMddHHmmss
|
|
| ntssendErrCode | String | 6 |
NTS filing result code
Refer to [ntssendErrCode]
|
|
| modifyCode | Integer | 1 |
Reason for revocation
Refer to [Revised Invoice]
|
|
| interOPYN | boolean | - |
Whether e-Tax invoice is issued by API or not
trueissued via API
falseissued via POPBiLL service website
|
|
| invoicerCorpName | String | 200 | [Seller] company name | |
| invoicerCorpNum | String | 10 |
[Seller] business registration number
10 digits except a hyphen(‘-’)
|
|
| invoicerMgtKey | String | 24 |
[Seller] document ID
a unique value that can be entered with alphanumeric values and special characters(‘-’, ‘_’)
|
|
| invoicerPrintYN | boolean | - |
[Seller] whether e-Tax invoice is printed or not
trueprinted
falsenot printed
|
|
| invoiceeCorpName | String | 200 | [Buyer] company name | |
| invoiceeCorpNum | String | 10 |
[Buyer] business registration number
- if {invoiceeType} = 사업자(business proprietor type) : business registration number, 10 digits except a hyphen(‘-’) - if {invoiceeType} = 개인(individual type) : resident registration number, 13 digits except a hyphen(‘-’) - if {invoiceeType} = 외국인(foreigner type) : 9999999999999 |
|
| invoiceePrintYN | boolean | - |
[Buyer] whether e-Tax invoice is printed or not
trueprinted
falsenot printed
|
|
| closeDownState | Integer | 1 |
[Buyer] status of the business
|
|
| closeDownStateDate | String | 8 |
[Buyer] date of the business closure
format : yyyyMMdd
|
Throws
PopbillException
| No. | Field | Type | Length | Description |
|---|---|---|---|---|
| code | long | - |
API response code
8 digits code that starts with (‘-’) [Error Code]
|
|
| message | String | - | Error message for any failed API process |
3. GetDetailInfo - Check the detailed information of the e-Tax invoice
- This API checks the detailed information of a single tax invoice.
Taxinvoice getDetailInfo(String CorpNum, MgtKeyType KeyType, String MgtKey) throws PopbillException
Parameters
Parameters
| No. | Field | Type | Length | Mandatory | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CorpNum | String | 10 | Y |
Business registration number
10-digits except (‘-’)
|
|||||||||||
| KeyType | MgtKeyType | - | Y |
Type of the e-Tax invoice
SELL sales
|
|||||||||||
|
MgtKeyType
|
|||||||||||||||
| MgtKey | String | 24 | Y | Document ID | |||||||||||
Return
Taxinvoice
| No. | Field | Type | Length | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ntsconfirmNum | String | 24 |
NTS confirmation number
POPBiLL automatically assigns this when issuing a tax invoice.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| issueType | String | 3 |
Issuance type
정발행general issuance
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| taxType | String | 2 |
Taxation type
과세taxable
영세zero-rated
면세exempted
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| chargeDirection | String | 3 |
Charging Direction
정과금Paid by seller
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| serialNum | String | 30 |
Serial number
item to manage the list of e-Tax invoice
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| kwon | Short | 4 |
Volume of a book
item to manage the list of e-Tax invoice
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| ho | Short | 4 |
Number of a book
item to manage the list of e-Tax invoice
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| writeDate | String | 8 |
Date of preparation
format : yyyyMMdd
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| purposeType | String | 2 |
Payments received or not
영수payment received
청구payment not received
없음none
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| supplyCostTotal | String | 18 | Sum of supply values | |||||||||||||||||||||||||||||||||||||||||||||||||||
| taxTotal | String | 18 | Sum of tax amount | |||||||||||||||||||||||||||||||||||||||||||||||||||
| totalAmount | String | 18 | Total amount | |||||||||||||||||||||||||||||||||||||||||||||||||||
| cash | String | 18 | Payment method – ‘cash’ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| chkBill | String | 18 | Payment method – ‘check’ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| credit | String | 18 | Payment method – ‘credit’ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| note | String | 18 | Payment method – ‘note’ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| remark1 | String | 150 |
1st Remark
if {invoiceeType} = "외국인(foreigner)", alien registration number or passport number will be returned
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| remark2 | String | 150 | 2nd Remark | |||||||||||||||||||||||||||||||||||||||||||||||||||
| remark3 | String | 150 | 3rd Remark | |||||||||||||||||||||||||||||||||||||||||||||||||||
| invoicerMgtKey | String | 24 | [Seller] document ID | |||||||||||||||||||||||||||||||||||||||||||||||||||
| invoicerCorpNum | String | 10 |
[Seller] business registration number
10 digits except a hyphen(‘-’)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| invoicerTaxRegID | String | 4 |
[Seller] identification number of a branch place
4 digits
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| invoicerCorpName | String | 200 | [Seller] company name | |||||||||||||||||||||||||||||||||||||||||||||||||||
| invoicerCEOName | String | 100 | [Seller] CEO name | |||||||||||||||||||||||||||||||||||||||||||||||||||
| invoicerAddr | String | 300 | [Seller] company address | |||||||||||||||||||||||||||||||||||||||||||||||||||
| invoicerBizType | String | 100 | [Seller] type of business | |||||||||||||||||||||||||||||||||||||||||||||||||||
| invoicerBizClass | String | 100 | [Seller] items of business | |||||||||||||||||||||||||||||||||||||||||||||||||||
| invoicerContactName | String | 100 | [Seller] name of the person in charge | |||||||||||||||||||||||||||||||||||||||||||||||||||
| invoicerDeptName | String | 100 | [Seller] department of the person in charge | |||||||||||||||||||||||||||||||||||||||||||||||||||
| invoicerTEL | String | 20 | [Seller] contact number of the person in charge | |||||||||||||||||||||||||||||||||||||||||||||||||||
| invoicerHP | String | 20 | [Seller] cell phone number of the person in charge | |||||||||||||||||||||||||||||||||||||||||||||||||||
| invoicerEmail | String | 100 | [Seller] email of the person in charge | |||||||||||||||||||||||||||||||||||||||||||||||||||
| invoiceeType | String | - |
[Buyer] type of customer
사업자business proprietor
개인individual
외국인foreigner
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| invoiceeCorpNum | String | - |
[Buyer] business registration number
- if {invoiceeType} = 사업자(business proprietor type) : business registration number, 10 digits except a hyphen(‘-’) - if {invoiceeType} = 개인(individual type) : resident registration number, 13 digits except a hyphen(‘-’) - if {invoiceeType} = 외국인(foreigner type) : 9999999999999 |
|||||||||||||||||||||||||||||||||||||||||||||||||||
| invoiceeTaxRegID | String | 4 |
[Buyer] identification number of a branch place
4 digits
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| invoiceeCorpName | String | 200 | [Buyer] company name | |||||||||||||||||||||||||||||||||||||||||||||||||||
| invoiceeCEOName | String | 100 | [Buyer] CEO name | |||||||||||||||||||||||||||||||||||||||||||||||||||
| invoiceeAddr | String | 300 | [Buyer] company address | |||||||||||||||||||||||||||||||||||||||||||||||||||
| invoiceeBizType | String | 100 | [Buyer] type of business | |||||||||||||||||||||||||||||||||||||||||||||||||||
| invoiceeBizClass | String | 100 | [Buyer] items of business | |||||||||||||||||||||||||||||||||||||||||||||||||||
| closeDownState | Integer | 1 |
[Buyer] status of the business
POPBiLL automatically executes this process when an e-Tax invoice is issued.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| closeDownStateDate | String | 8 |
[Buyer] date of the business closure
format : yyyyMMdd
if {closedownState} value = 2 or 3, this value will be returned
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| invoiceeContactName1 | String | 100 | [Buyer] name of the person in charge | |||||||||||||||||||||||||||||||||||||||||||||||||||
| invoiceeDeptName1 | String | 100 | [Buyer] department of the person in charge | |||||||||||||||||||||||||||||||||||||||||||||||||||
| invoiceeTEL1 | String | 20 | [Buyer] contact number of the person in charge | |||||||||||||||||||||||||||||||||||||||||||||||||||
| invoiceeHP1 | String | 20 | [Buyer] telephone number of the person in charge | |||||||||||||||||||||||||||||||||||||||||||||||||||
| invoiceeEmail1 | String | 100 | [Buyer] email of the person in charge | |||||||||||||||||||||||||||||||||||||||||||||||||||
| modifyCode | Short | 1 |
Reason for revocation
returns this for a revised invoice only
Refer to [Revised Invoice] |
|||||||||||||||||||||||||||||||||||||||||||||||||||
| orgNTSConfirmNum | String | 24 |
NTS confirmation number of the original tax invoice
returns this for a revised invoice only
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
| detailList | List<TaxinvoiceDetail> |
Detailed list of items
maximum : 99
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
TaxinvoiceDetail
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| addContactList | List<TaxinvoiceAddContact> |
Additional person in charge information of the buyer
use this when sending notification mails to multiple persons in charge
maximum : 5 |
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
TaxinvoiceAddContact
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
Throws
PopbillException
| No. | Field | Type | Length | Description |
|---|---|---|---|---|
| code | long | - |
API response code
8 digits code that starts with (‘-’) [Error Code]
|
|
| message | String | - | Error message for any failed API process |
4. GetXML - Return an e-Tax invoice into an XML file
- This API returns the detailed information of a single tax invoice into an XML file.
TaxinvoiceXML getXML(String CorpNum, MgtKeyType KeyType, String MgtKey, String UserID) throws PopbillException
Parameters
Parameters
| No. | Field | Type | Length | Mandatory | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CorpNum | String | 10 | Y |
Business registration number
10-digits except (‘-’)
|
|||||||||||
| KeyType | MgtKeyType | - | Y |
Type of the e-Tax invoice
SELL sales
|
|||||||||||
|
MgtKeyType
|
|||||||||||||||
| MgtKey | String | 24 | Y | Document ID | |||||||||||
| UserID | String | 50 | N | User’s POPBiLL ID | |||||||||||
Return
TaxinvoiceXML
| No. | Field | Type | Length | Description |
|---|---|---|---|---|
| code | long | - | API response code | |
| message | String | - | API response message | |
| retObject | String | - | XML file of the tax invoice |
Throws
PopbillException
| No. | Field | Type | Length | Description |
|---|---|---|---|---|
| code | long | - |
API response code
8 digits code that starts with (‘-’) [Error Code]
|
|
| message | String | - | Error message for any failed API process |
5. Search - Search the list of e-Tax invoices
- This API searches an e-Tax invoice corresponded to the search criteria. (Maximum search scope of period : 6 months)
TISearchResult Search(String CorpNum, MgtKeyType KeyType, String DType, String SDate, String EDate, String[] State, String[] Type, String[] TaxType, String[] IssueType, Boolean LateOnly, String TaxRegIDType, String TaxRegID, String TaxRegIDYN, String QString, Integer Page, Integer PerPage, String Order, String InterOPYN, String[] RegType, String[] CloseDownState, String MgtKey) throws PopbillException
- We recommend to use this API when a user implements the list of e-Tax invoices with items related to the page (variables : Page, perPage, Order).
Parameters
Parameters
| No. | Field | Type | Length | Mandatory | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CorpNum | String | 10 | Y |
Business registration number
10-digits except (‘-’)
|
|||||||||||
| KeyType | MgtKeyType | - | Y |
Type of the e-Tax invoice
SELL sales
|
|||||||||||
|
MgtKeyType
|
|||||||||||||||
| DType | String | 1 | Y |
Date type in search criteria
R date of registration
W date of preparation
I issuance date
|
|||||||||||
| SDate | String | 8 | Y |
Initial date of search scope
format : yyyyMMdd
|
|||||||||||
| EDate | String | 8 | Y |
Last date of search scope
format : yyyyMMdd
|
|||||||||||
| State | String[ ] | N |
e-Tax invoice status code
wild card(*) can be put on 2nd, 3rd letter
e.g., "3**", "6**" search all if not entered
|
||||||||||||
| Type | String[ ] | N |
Type of e-Tax invoice (multiple choice is possible)
Ngeneral
M[revised] e-Tax invoice
search all if not entered
|
||||||||||||
| TaxType | String[ ] | N |
Taxation Type (multiple choice is possible)
Ttaxable
Nexempted
Zzero-rated
search all if not entered
|
||||||||||||
| IssueType | String[ ] | N |
Issuance Type
Ngeneral issuance
search all if not entered
|
||||||||||||
| LateOnly | Boolean | - | N |
Whether e-Tax invoice is issued after the due or not
trueissued after the due date
falseissued within the due date
search all if not entered
|
|||||||||||
| TaxRegIDType | String | 1 | N |
Type of the Identification number branch place
Sseller
Bbuyer
search all if not entered
|
|||||||||||
| TaxRegID | String | - | N |
Identification number for branch place
more than one number must be separated with a comma(‘,’)
e.g., 1234, 1110 search all if not entered
|
|||||||||||
| TaxRegIDYN | String | 1 | N |
Whether the Identification number for branch place exists or not
0does not exist
1exist
search all if not entered
|
|||||||||||
| QString | String | - | N |
Search Criteria (do not enter hyphen)
- buyer’s company name - business Registration Number (for company) - residential Registration Number (for individual) - 9999999999999 (for foreigner) search all if not entered
|
|||||||||||
| Page | Integer | - | N |
Page number
default value : 1
|
|||||||||||
| PerPage | Integer | - | N |
The number of list to be displayed per page
maximum value : 1,000
default value : 500
|
|||||||||||
| Order | String | 1 | N |
Sort order related to the value of {DType}
Ddescending (default)
Aascending
|
|||||||||||
| InterOPYN | String | 1 | N |
Whether an e-Tax invoice is issued by API or not
0issued via POPBiLL service website
1issued via API
search all if not entered
|
|||||||||||
| RegType | String[ ] | N |
Registration type of e-Tax invoice (multiple choice is possible)
Pregistered in POPBiLL
Hregistered(issued) in Hometax or another ASP
search all if not entered
|
||||||||||||
| CloseDownState | String[ ] | N |
Business status (multiple choice is possible)
Nprocessing
0unregistered
1in business
2closed
3suspended
4failed to check
search all if not entered
|
||||||||||||
| MgtKey | String | - | N |
Search criteria for an e-Tax invoice
└ Document ID └ NTS Confirmation number search all if not entered
|
|||||||||||
| UserID | String | 50 | N | User’s POPBiLL ID | |||||||||||
Return
TISearchResult
| No. | Field | Type | Length | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| code | long | - | API response code | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| message | String | - | API response message | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| total | String | - | Total number of search results | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| perPage | String | - | Number of search result per page | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pageNum | String | - | Page number | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pageCount | String | - | Number of pages | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| list | List<TaxinvoiceInfo> |
Status/summarized info of tax invoice
The configuration is same as the returned value of [GetInfo – Check the status of an e-Tax invoice] API.
maximum : 1,000 invoices |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
TaxinvoiceInfo
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Throws
PopbillException
| No. | Field | Type | Length | Description |
|---|---|---|---|---|
| code | long | - |
API response code
8 digits code that starts with (‘-’) [Error Code]
|
|
| message | String | - | Error message for any failed API process |
6. GetLogs - Check the log of e-Tax invoice status changes
- This API checks the log of status changes of an e-Tax invoice.
TaxinvoiceLog[] getLogs(String CorpNum, MgtKeyType KeyType, String MgtKey) throws PopbillException
Parameters
Parameters
| No. | Field | Type | Length | Mandatory | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CorpNum | String | 10 | Y |
Business registration number
10-digits except (‘-’)
|
|||||||||||
| KeyType | MgtKeyType | - | Y |
Type of the e-Tax invoice
SELL sales
|
|||||||||||
|
MgtKeyType
|
|||||||||||||||
| MgtKey | String | 24 | Y | Document ID | |||||||||||
Return
TaxinvoiceLog
| No. | Field | Type | Length | Description |
|---|---|---|---|---|
| docLogType | Integer | 3 |
Log type
|
|
| log | String | 2000 | Log information | |
| procType | String | 3 |
Handling type
연동processed via API
일반processed via POPBiLL service website
시스템processed via POPBiLL system
|
|
| procCorpName | String | 70 | Name of the company in charge of processing | |
| procContactName | String | 30 | Name of the person in charge of processing | |
| procMemo | String | 200 | Memo on processing | |
| regDT | String | 14 |
Date and time of the registration
format : yyyyMMddHHmmss
|
|
| ip | String | 39 | IP address |
Throws
PopbillException
| No. | Field | Type | Length | Description |
|---|---|---|---|---|
| code | long | - |
API response code
8 digits code that starts with (‘-’) [Error Code]
|
|
| message | String | - | Error message for any failed API process |
7. GetURL - URL for an e-Tax invoice menu
- This API returns the URL to access the menu related to an e-Tax invoice of POPBiLL service website in login status.
- Returned URL is valid for 30 seconds and after that you cannot access to the page.
String getURL(String CorpNum, String UserID, String TOGO) throws PopbillException
Parameters
Parameters
| No. | Field | Type | Length | Mandatory | Description |
|---|---|---|---|---|---|
| CorpNum | String | 10 | Y |
Business registration number
10-digits except (‘-’)
|
|
| UserID | String | 50 | N | User’s POPBiLL ID | |
| TOGO | String | - | Y |
Targeted Menu
SBOXsales document box
WRITEcreate a tax invoice
|
Return
String - Returned URL of response on the request
Throws
PopbillException
| No. | Field | Type | Length | Description |
|---|---|---|---|---|
| code | long | - |
API response code
8 digits code that starts with (‘-’) [Error Code]
|
|
| message | String | - | Error message for any failed API process |
8. GetPDF - e-Tax invoice PDF Download
- Download 1 e-Tax invoice PDF.
byte[] getPDF(String CorpNum, MgtKeyType KeyType, String MgtKey, String UserID) throws PopbillException
Parameters
Parameters
| No. | Field | Type | Length | Mandatory | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CorpNum | String | 10 | Y |
Business registration number
10-digits except (‘-’)
|
|||||||||||
| KeyType | MgtKeyType | - | Y |
Type of the e-Tax invoice
SELL sales
|
|||||||||||
|
MgtKeyType
|
|||||||||||||||
| MgtKey | String | 24 | Y | Document ID | |||||||||||
| UserID | String | 50 | N | POPBiLL member ID | |||||||||||
Return
byte[] - e-Tax invoice PDF binary
Throws
PopbillException
| No. | Field | Type | Length | Description |
|---|---|---|---|---|
| code | long | - |
API response code
8 digits code that starts with (‘-’) [Error Code]
|
|
| message | String | - | Error message for any failed API process |

