Skip to main content

Change Escrow Status

This API is used to change the status of an Escrow transaction.

Note
  • Purchase Confirmation and Purchase Rejection are handled via the confirmation email sent to the customer.
  • Once the customer confirms or rejects the purchase, the result is sent via Webhook (Notification).
  • In case of Purchase Rejection, please contact KICC directly.
  • Partial Cancellation and Partial Refund are not supported.

State Diagram​

Request​

Request URL
POST https://{API Domain}/api/trades/revise
Content-type: application/json; charset=utf-8
Note

Supports API Idempotency (See API Idempotency)

Caution

Since final processing takes time, you must set the timeout to 30 seconds.

Parameters​

Field NameTypeLengthRequiredDescription
mallIdString8Byte✅Merchant ID assigned by KICC
shopTransactionIdString60Byte✅Merchant Transaction ID (API Idempotency Key)
pgCnoString20Byte✅Original PG Transaction ID
reviseTypeCodeString2Byte✅Change Type Code
Fixed at "61" for Escrow Status Change
reviseSubTypeCodeString4ByteChange Sub-Type Code (See Sub-Codes)
amountNumberCancel Amount.
remainAmountNumberRemaining Amount.
clientIpString20ByteRequestor IP
clientIdString32ByteRequestor ID (Merchant Admin Login ID)
cancelReqDateString8Byte✅Request Date (yyyyMMdd). Must use the current date.
msgAuthValueString200Byte✅Message Integrity Verification Value (See Message Authentication)
Contact sales for the Secret Key.
reviseMessageString100ByteReason for Change
escrowInfoObjectEscrow Info (Required for Shipping Request)
See escrowInfo below
taxInfoObjectComplex Tax Info (Required if using Complex Tax)
See taxInfo below
refundInfoObjectRefund Info (Required for Refund Request)
See refundInfo below

escrowInfo (Escrow Information)​

Field NameTypeLengthRequiredDescription
deliveryCodeString4Byte✅Delivery Type
Self-delivery: "DE01", Courier: "DE02"
deliveryCorpCodeString4Byte✅Courier Code (See Courier Codes)
deliveryInvoiceString30Byte✅Tracking Number (Invoice No.)

taxInfo (Complex Tax Info)​

Field NameTypeLengthRequiredDescription
taxationAmountNumber✅Cancelled Taxable Amount
taxFreeAmountNumber✅Cancelled Tax-free Amount
vatAmountNumber✅Cancelled VAT Amount

refundInfo (Refund Information)​

Field NameTypeLengthRequiredDescription
refundBankCodeString3Byte✅Refund Bank Code (See Bank Codes)
refundAccountNoString14Byte✅Refund Account Number
refundDepositNameString50Byte✅Account Holder Name
Request Example
{  
"mallId": "{Merchant ID}",
"shopTransactionId": "{API Idempotency Key}",
"pgCno": "{PG Transaction ID}",
"reviseTypeCode": "61",
"reviseSubTypeCode": "ES02",
"cancelReqDate": "{Request Date}",
"msgAuthValue": "{Message Auth Value}"
}

Response​

For the response format of Escrow Status Change, please refer to the Payment Management API Guide.

Change Sub-Type Codes (reviseSubTypeCode)​

CodeService NameDescription
ES02Cancel AuthorizationCancel Bank Transfer Auth or Virtual Account Issuance
ES05Request RefundRefund request for deposited Virtual Account transaction
ES07ShippingRequest after product shipment
ES08Cancel during ShippingCancel request during shipping
ES09Complete Cancel (Shipping)Complete cancellation after product return
ES10Refund during ShippingRefund request during shipping
ES11Complete Refund (Shipping)Complete refund after product return
ES14Refund after ConfirmRefund request after purchase confirmation
ES15Complete Refund (Confirm)Complete refund after product return
ES16Cancel after ConfirmCancel request after purchase confirmation
ES19Complete Cancel (Confirm)Complete cancellation after product return

Courier Codes (deliveryCorpCode)​

CodeCourierCodeCourier
DC01CJ Logistics (Korea Express)DC02CJ GLS
DC03SC LogisDC04Yellow Cap
DC05LogenDC06Dongbu Express
DC07Korea PostDC08Hanjin
DC09HyundaiDC10KGB
DC11HanaroDC12Others

Message Authentication Value​

The Message Authentication Value is constructed by combining the fields below and hashing the result using HmacSHA256. (See Message Authentication)

pgCno(PG Transaction ID) + “|” + shopTransactionId(Merchant Transaction ID)