6. Custom Functions
The following APIs are for the customized process only. It is required to notify partner center before implementing these functions.
1. Register - Save an e-Tax invoice
- This API saves the e-Tax invoice data with “Saved” status in POPBiLL server.
- To send an e-Tax invoice to the NTS, an e-Tax invoice with a “saved” status must be proceeded as an “issued” status via [Issue- Issue an e-Tax invoice] API.
Response register(String CorpNum, Taxinvoice taxinvoice, String UserID, Boolean writeSpecification) throws PopbillException
To implement the file attachment function, please refer to the following sequences as [Register – Save an e-Tax Invoice] → [AttachFile – Attach a file within an e-Tax invoice] → [Issue – Issue an e-Tax invoice].
Parameters
Parameters
| No. | Field | Type | Length | Mandatory | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CorpNum | String | 10 | Y |
Business registration number
10-digits except (‘-’)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| taxinvoice | Taxinvoice | - | Y | Object of an e-Tax invoice | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Taxinvoice
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| UserID | String | 50 | N | User’s POPBiLL ID | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| WriteSpecification | Boolean | - | N |
Whether a user uses concurrent creation of a transaction details or not
true do
false do not (default)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Return
Response
| No. | Field | Type | Length | Description |
|---|---|---|---|---|
| code | long | - | API response code | |
| message | String | - | API response message |
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. AttachFile - Attach a file within an e-Tax invoice
- This API attaches a single file to an e-Tax invoice with “Saved” status. (Maximum : 5 files)
Response attachFile(String CorpNum, MgtKeyType KeyType, String MgtKey, String DisplayName, InputStream FileData, 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
SELLsales
|
|||||||||||
|
MgtKeyType
|
|||||||||||||||
| MgtKey | String | 24 | Y | Document ID | |||||||||||
| DisplayName | String | 255 | Y | Name of an attachment file | |||||||||||
| FileData | InputStream | - | Y | Data of an attachment file | |||||||||||
| UserID | String | 50 | N | User’s POPBiLL ID | |||||||||||
Return
Response
| No. | Field | Type | Length | Description |
|---|---|---|---|---|
| code | long | - | API response code | |
| message | String | - | API response message |
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. Issue - Issue an e-Tax invoice
- This API issues (digitally signs) an e-Tax invoice with “Saved” status and proceed it as “Issued”.
IssueResponse issue(String CorpNum, MgtKeyType KeyType, String MgtKey, String Memo, String EmailSubject, Boolean ForceIssue, 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
SELLsales
|
|||||||||||
|
MgtKeyType
|
|||||||||||||||
| MgtKey | String | 24 | Y | Document ID | |||||||||||
| Memo | String | 200 | N | Memo for user’s convenience | |||||||||||
| EmailSubject | String | 300 | N |
Title of a notification mail sent to a buyer
default : title assigned by POPBiLL
|
|||||||||||
| ForceIssue | Boolean | - | N |
Whether a user permits to issue an overdue e-Tax invoice or not
true do
false do not (default)
|
|||||||||||
| UserID | String | 50 | N | User’s POPBiLL ID | |||||||||||
Return
IssueResponse
| No. | Field | Type | Length | Description |
|---|---|---|---|---|
| code | long | - | API response code | |
| message | String | - | API response message | |
| ntsConfirmNum | String | 24 |
NTS confirmation number
POPBiLL automatically assigns this when issuing a 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 |
4. GetFiles - View the list of attachments within an e-Tax invoice
- This API returns a list of attachments within a single e-Tax invoice.
AttachedFile[] getFiles(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
SELLsales
|
|||||||||||
|
MgtKeyType
|
|||||||||||||||
| MgtKey | String | 24 | Y | Document ID | |||||||||||
Return
AttachedFile
| No. | Field | Type | Length | Description |
|---|---|---|---|---|
| serialNum | Integer | 1 |
Serial number
item to manage the list of attachment files
|
|
| attachedFile | String | 255 |
File ID
It is required to enter this value when calling
[DeleteFile - Delete an attachment within an e-Tax invoice] API.
|
|
| displayName | String | 255 | Name of an attachment file | |
| regDT | String | 14 |
Date and time of attachment creation
format : yyyyMMddHHmmss
|
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. DeleteFile - Delete an attachment within an e-Tax invoice
- This API deletes a single attachment of an e-Tax invoice with “Saved” status.
Response deleteFile(String CorpNum, MgtKeyType KeyType, String MgtKey, String FileID, 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
SELLsales
|
||||||||||||||||||||||||||
|
MgtKeyType
|
||||||||||||||||||||||||||||||
| MgtKey | String | 24 | Y | Document ID | ||||||||||||||||||||||||||
| FileID | String | 255 | Y |
Unique identification number assigned by POPBiLL system to manage attachment files.
to find this, refer to the returned value of the
AttachedFile via
[GetFiles – View the list of attachments within an e-Tax invoice] API.
|
||||||||||||||||||||||||||
|
AttachedFile
|
||||||||||||||||||||||||||||||
| UserID | String | 50 | N | User’s POPBiLL ID | ||||||||||||||||||||||||||
Return
Response
| No. | Field | Type | Length | Description |
|---|---|---|---|---|
| code | long | - | API response code | |
| message | String | - | API response message |
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 |

