Skip to main content

Import Item Search

The Select Import Item API retrieves imported item details based on a taxpayer PIN, branch ID, and last request date. It helps track imported goods and related invoice data in the system.

Endpoint


POST /selectImportItemList


Purpose

This API:

  • Returns a list of imported items for a given taxpayer and branch
  • Provides details like task code, declaration number, item name, quantity, supplier, and invoice amounts
  • Can be used to monitor import items or for update workflows

Request Object: ImportItemSearchReq

Request Fields

FieldDescriptionTypeRequiredLengthFormat
lastReqDtLast Request DateCHAR✅ Yes14YYYYMMDDHHMMSS

JSON Request Example

{
"lastReqDt": "20190524000000"
}

Response Object: ImportItemSearchRes

Top-Level Fields

FieldDescriptionTypeLength
resultCdResult code (000 = success)CHAR(3)3
resultMsgResult messageCHAR
resultDtResponse timestampCHAR(14)14

Imported Item List (itemList)

FieldDescriptionTypeNotes
taskCdTask CodeCHAR(50)
dclDeDeclaration DateCHAR(8)YYYYMMDD
itemSeqItem SequenceNUMBER10
dclNoDeclaration NumberCHAR(50)
hsCdHS CodeCHAR(17)
itemNmItem NameCHAR(500)
imptItemsttsCdImport Item Status CodeCHAR(5)See system codes
orgnNatCdOrigin Nation CodeCHAR(5)
exptNatCdExport Nation CodeCHAR(5)
pkgPackage QuantityNUMBER13,2
pkgUnitCdPackage Unit CodeCHAR(5)See packaging unit codes
qtyQuantityNUMBER13,2
qtyUnitCdQuantity Unit CodeCHAR(5)See unit codes
totWtTotal WeightNUMBER13,2
netWtNet WeightNUMBER13,2
spplrNmSupplier NameCHAR(500)
agntNmAgent NameCHAR(500)
invcFcurAmtInvoice Foreign Currency AmountNUMBER18,2
invcFcurCdInvoice Currency CodeCHAR(5)See currency codes
invcFcurExcrtInvoice Foreign Exchange RateNUMBER18,2

JSON Response Example

{
"resultCd": "000",
"resultMsg": "It is succeeded",
"resultDt": "20200226194118",
"data": {
"itemList": [
{
"taskCd": "2239078",
"dclDe": "-1",
"itemSeq": 1,
"dclNo": "C3460-2019-TZDL",
"hsCd": "20055900000",
"itemNm": "BAKED BEANS",
"imptItemsttsCd": "2",
"orgnNatCd": "BR",
"exptNatCd": "BR",
"pkg": 2922,
"pkgUnitCd": null,
"qty": 19946,
"qtyUnitCd": "KGM",
"totWt": 19945.57,
"netWt": 19945.57,
"spplrNm": "ODERICH CONSERVA QUALIDADE BRASIL",
"agntNm": "BN METRO Ltd",
"invcFcurAmt": 296865.6,
"invcFcurCd": "USD",
"invcFcurExcrt": 929.79
}
]
}
}

resultCd = 000 indicates the request was successful.


SDK Usage Examples

$requestData = [
'lastReqDt' => '20190524000000'
];

$response = $etims->selectImportedItems($requestData);

$itemList = $response['data']['itemList'] ?? [];
echo "Import items found: " . count($itemList) . "\n";

foreach ($itemList as $item) {
echo "- Task: {$item['taskCd']}, Declaration: {$item['dclNo']}, Item: {$item['itemNm']}, Qty: {$item['qty']}\n";
}

Best Practices

  • Always validate branch and taxpayer PIN before querying import items
  • Handle non-000 result codes gracefully
  • Expect itemList to be empty if no items exist for the request date
  • Do not cache import item data permanently (details may change)

Next Steps