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.

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
mallIdString8ByteMerchant ID assigned by KICC
shopTransactionIdString60ByteMerchant Transaction ID (API Idempotency Key)
pgCnoString20ByteOriginal PG Transaction ID
reviseTypeCodeString2ByteChange Type Code
Fixed at "61" for Escrow Status Change
reviseSubTypeCodeString4ByteChange Sub-Type Code (See Sub-Codes)
amountNumberCancel Amount. Required for Partial Cancellation.
remainAmountNumberRemaining Amount. Used for validation during Partial Cancellation.
clientIpString20ByteRequestor IP
clientIdString32ByteRequestor ID (Merchant Admin Login ID)
cancelReqDateString8ByteRequest Date (yyyyMMdd). Must use the current date.
msgAuthValueString200ByteMessage 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
deliveryCodeString4ByteDelivery Type
Self-delivery: "DE01", Courier: "DE02"
deliveryCorpCodeString4ByteCourier Code (See Courier Codes)
deliveryInvoiceString30ByteTracking Number (Invoice No.)

taxInfo (Complex Tax Info)

Field NameTypeLengthRequiredDescription
taxationAmountNumberCancelled Taxable Amount
taxFreeAmountNumberCancelled Tax-free Amount
vatAmountNumberCancelled VAT Amount

refundInfo (Refund Information)

Field NameTypeLengthRequiredDescription
refundBankCodeString3ByteRefund Bank Code (See Bank Codes)
refundAccountNoString14ByteRefund Account Number
refundDepositNameString50ByteAccount 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)