POPBill Developers
SDK Reference
Java

Check the result

2. Summary - Check the summarized information for the data crawling result

  • This API checks the summarized information of crawled sales/purchase cash receipts with an active JobID request that is validated via [GetJobState – Check the data crawling status] API.

    ※ content of information : number of crawled cash receipts, total amount of supplyCost, tax, serviceFee, and totalAmount

HTCashbillSummary summary(String CorpNum, String JobID, String[] TradeUsage, String[] TradeType, String UserID) throws PopbillException
Parameters
Parameters
No.FieldTypeLengthMandatoryDescription
CorpNum String 10 Y Business registration number
10-digits except (‘-’)
JobID String 18 Y Request ID(JobID)
TradeUsage String[ ] N Purpose of issuance (multiple choice is possible)
Pincome deduction usage
Cproof of purchase usage
search all if not entered
TradeType String[ ] N Type of cash receipt (multiple choice is possible)
Ngeneral cash receipt
Ccash receipt for revocation
search all if not entered
UserID String 50 N User’s POPBiLL ID
Return
HTCashbillSummary
No.FieldTypeLengthDescription
count long - Number of crawled cash receipts
supplyCostTotal long 18 Sum of supply values
taxTotal long 18 Sum of tax amount
serviceFeeTotal long 18 Sum of service fee
amountTotal long 18 Total amount
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