Transaction Detail API

Retrieves detailed information for a specific transaction.


API Information

POST/v1/trade/detail
Content-Typeapplication/json
테스트https://tb-mps-api.hectofinancial.co.kr/v1/trade/detail
운영https://mps-api.hectofinancial.co.kr/v1/trade/detail

Request Parameters

타입 표기법
N숫자A영문H한글AN영문+숫자AHN영문+한글+숫자
예: AN(10) = 영문+숫자, 최대 10byte
custNoAN(20)Alphanumeric, up to 20 bytes*
Prepaid member number.
*Unique prepaid member number assigned by Hecto Financial.
ciAN(255)Alphanumeric, up to 255 bytes*AES-256AES-256/ECB/PKCS5Padding + Base64
Member CI value.
*Customer's unique CI value. AES-256/ECB/PKCS5Padding encryption required.
trdNoAN(50)Alphanumeric, up to 50 bytes*
Transaction approval number.
*Unique transaction number assigned by Hecto Financial.
trdDtAN(8)Alphanumeric, up to 8 bytes*
Transaction approval date.
*yyyyMMdd format.

Response Parameters

타입 표기법
N숫자A영문H한글AN영문+숫자AHN영문+한글+숫자
예: AN(10) = 영문+숫자, 최대 10byte
rsltCdAN(4)Alphanumeric, up to 4 bytes*0000
Result code.
0000: Success Other: Failure
rsltMsgAN(255)Alphanumeric, up to 255 bytes*Success
Result message.

rsltObj (Response Object)

custNoAN(20)Alphanumeric, up to 20 bytes*2400001605
Prepaid member number.
mtrdNoAN(50)Alphanumeric, up to 50 bytes*ORDER20240716
Merchant transaction reference number.
*No Korean characters.
trdNoAN(50)Alphanumeric, up to 50 bytes*24071616270200002193
Transaction approval number.
*Unique transaction number assigned by Hecto Financial.
orgTrdNoAN(50)Alphanumeric, up to 50 bytesORDER20240715
Original transaction approval number.
*Populated when an original transaction exists (transaction codes UC, MC, PC).
reqDtAN(8)Alphanumeric, up to 8 bytes20240717
Request date.
*Merchant request date. yyyyMMdd format.
reqTmAN(6)Alphanumeric, up to 6 bytes190203
Request time.
*Merchant request time. HHmmss format.
trdDtAN(8)Alphanumeric, up to 8 bytes*20240716
Transaction date.
*yyyyMMdd format.
trdTmAN(6)Alphanumeric, up to 6 bytes*164101
Transaction time.
*HHmmss format.
trdDivCdAN(2)Alphanumeric, up to 2 bytes*
Transaction code.
CU: Spend UC: Spend void MP: Money top-up MC: Money top-up void MW: Money withdrawal WW: Pending withdrawal MG: Money gift transfer MR: Money received PP: Points issuance PC: Points issuance void
trdDivDtlCdAN(12)Alphanumeric, up to 12 bytes
Transaction division detail code.
*Merchant transaction division detail code (only pre-registered values are used).
chrgMeanCdAN(2)Alphanumeric, up to 2 bytesRA
Top-up method code.
*Applicable only to MP (Money top-up) and PP (Points issuance).
trdSumryAN(100)Alphanumeric, up to 100 bytes987
Transaction summary.
*Issuance reason, issuance void reason, or withdrawal bank account number (last 3 digits).
trdAmtN(7)Numeric, up to 7 bytes*2000
Transaction amount.
mnyAmtN(7)Numeric, up to 7 bytes*1000
Money amount.
pntAmtN(7)Numeric, up to 7 bytes*1000
Points amount.
waitMnyAmtN(7)Numeric, up to 7 bytes0
Pending Money amount.
mnyBlcN(7)Numeric, up to 7 bytes*10000
Money balance.
pntBlcN(7)Numeric, up to 7 bytes*1000
Points balance.
waitMnyBlcN(7)Numeric, up to 7 bytes*0
Pending Money balance.
mnyVldPdAN(8)Alphanumeric, up to 8 bytes20340722
Money validity period.
*Applicable when transaction code is MP (Money top-up). yyyyMMdd format.
pntVldPdAN(8)Alphanumeric, up to 8 bytes20340722
Points validity period.
*Applicable when transaction code is PP (Points issuance). yyyyMMdd format.
cnclYnAN(1)Alphanumeric, up to 1 bytes
Void flag.
Y: Voided N: Not voided
*Applicable to CU (Spend), MP (Money top-up), and PP (Points issuance) transactions that have been voided.
csrcIssReqYnAN(1)Alphanumeric, up to 1 bytes
Cash receipt request flag.
Y: Requested N: Not requested
*Applicable when transaction code is CU (Spend).
csrcIssStatCdAN(1)Alphanumeric, up to 1 bytes
Cash receipt issuance status.
*Applicable when transaction code is CU (Spend).
csrcAppNoAN(50)Alphanumeric, up to 50 bytes20240722100000
Cash receipt approval number.
*Applicable when transaction code is CU (Spend).
csrcApprDtmAN(14)Alphanumeric, up to 14 bytes
Cash receipt approval datetime.
*Applicable when transaction code is CU (Spend). YYYYMMDDHHMMSS format.
statusAN(1)Alphanumeric, up to 1 bytes
Transaction status.
0: Processing 1: Completed
*Check withdrawal status for transaction codes MW (Money withdrawal), WW (Pending withdrawal), TW (Termination withdrawal).
stlMIdAN(20)Alphanumeric, up to 20 bytes
Settlement merchant ID.
*Merchant ID for settlement target.
storCdAN(20)Alphanumeric, up to 20 bytesHF000001
Store code.
storNmAN(128)Alphanumeric, up to 128 bytesHecto Financial
Store name.
cnclTrdAmtN(7)Numeric, up to 7 bytes1000
Void amount.
*For CU/MP/PP transaction codes, the void amount for the original transaction.
cnclMnyAmtN(7)Numeric, up to 7 bytes1000
Void Money amount.
*For CU/MP/PP transaction codes, the void Money amount for the original transaction.
cnclPntAmtN(7)Numeric, up to 7 bytes0
Void Points amount.
*For CU/MP/PP transaction codes, the void Points amount for the original transaction.
lastCnclDateN(14)Numeric, up to 14 bytes20240718190801
Last void date.
*For CU/MP/PP transaction codes, the date of the last void for the original transaction. YYYYMMDDHH24MISS format.
mResrvField1AN(255)Alphanumeric, up to 255 bytes
Merchant reserve field 1.
*Transmitted in plaintext. Do not include sensitive personal information.
mResrvField2AN(255)Alphanumeric, up to 255 bytes
Merchant reserve field 2.
*Transmitted in plaintext. Do not include sensitive personal information.
mResrvField3AN(255)Alphanumeric, up to 255 bytes
Merchant reserve field 3.
*Transmitted in plaintext. Do not include sensitive personal information.

Request Example

{
  "custNo": "2400001605",
  "ci": "AES-encrypted CI value",
  "trdNo": "24071616270200002193",
  "trdDt": "20240716"
}

Response Examples

Success (Spend Transaction)

{
  "rsltCd": "0000",
  "rsltMsg": "Success",
  "rsltObj": {
    "custNo": "2400001605",
    "mtrdNo": "ORDER20240716",
    "trdNo": "24071616270200002193",
    "reqDt": "20240716",
    "reqTm": "164100",
    "trdDt": "20240716",
    "trdTm": "164101",
    "trdDivCd": "CU",
    "trdSumry": "",
    "trdAmt": "10000",
    "mnyAmt": "9000",
    "pntAmt": "1000",
    "waitMnyAmt": "0",
    "mnyBlc": "11000",
    "pntBlc": "0",
    "waitMnyBlc": "0",
    "cnclYn": "N",
    "csrcIssReqYn": "Y",
    "csrcIssStatCd": "Y",
    "csrcAppNo": "20240716164102",
    "csrcApprDtm": "20240716164102",
    "storCd": "HF000001",
    "storNm": "Hecto Financial",
    "cnclTrdAmt": "0",
    "cnclMnyAmt": "0",
    "cnclPntAmt": "0"
  }
}

Success (Withdrawal Transaction)

{
  "rsltCd": "0000",
  "rsltMsg": "Success",
  "rsltObj": {
    "custNo": "2400001605",
    "mtrdNo": "ORDER20240717",
    "trdNo": "24071716270200002194",
    "trdDt": "20240717",
    "trdTm": "100000",
    "trdDivCd": "MW",
    "trdSumry": "987",
    "trdAmt": "50000",
    "mnyAmt": "50000",
    "pntAmt": "0",
    "mnyBlc": "0",
    "pntBlc": "0",
    "waitMnyBlc": "0",
    "status": "1"
  }
}

Failure

{
  "rsltCd": "1001",
  "rsltMsg": "Transaction information does not exist."
}
💬

Need technical support?