Refund Notification

Callback notification for refund status updates.

  • Status 02 (Refund Success) or 05 (Refund Fail) triggers a callback.
  • Paylabs calls the notifyUrl provided when the refund request was created.
  • If no successful response, notifications are retried up to 8 times at 1s, 5s, 10s, 30s, 60s, 300s, 900s, 1800s.

Request URL

URL: value of notifyUrl when sending the refund request
HTTPMethod: POST
EndpointUrl: path part of the URL, e.g. URL=https://merchant-domain.com/v2/qris/notify → Path=/v2/qris/notify

Refund Notification Request Parameters (Paylabs → Merchant)

Data Signing Rules

Field NameTypeValueRequired
Content-TypeString(30)Fixed value "application/json;charset=utf-8"Yes
X-TIMESTAMPString(29)Current time, format 2022-09-16T16:58:47.964+07:00Yes
X-SIGNATUREString(64)Signature. For details please check Data Signing RulesYes
X-PARTNER-IDString(20)Merchant IDYes
X-REQUEST-IDString(64)Unique ID for each requestYes

Body

Error Code

ParameterTypeRequiredRemarks
requestIdString(64)YesUnique identifier on every request
errCodeString(32)Yes0 means success, otherwise see Error Code
errCodeDesString(128)NoError description
merchantIdString(20)YesMerchant ID
storeIdString(30)NoIf using branch store ID
paymentTypeString(20)YesPayment type, see Payment Type table
amountDecimal(12,2)YesAmount in IDR with 2 decimals
merchantRefundNoString(32)YesRefund number
merchantTradeNoString(32)YesMerchant order number
platformTradeNoString(32)NoPaylabs order number
createTimeString(16)NoyyyyMMddHHmmss
successTimeString(16)NoyyyyMMddHHmmss
statusString(2)No02: Refund success, 03: Refund in progress, 06: Refund failed
+paymentMethodInfoObjectNoChannel information
transFeeRateDecimal(6,6)NoTransaction rate, six decimals
transFeeAmountDecimal(12,2)NoFee, two decimals
totalTransFeeDecimal(12,2)NoTotal fee rate (excl. vatFee), two decimals
vatFeeDecimal(12,2)NoVAT fee, two decimals

Refund Notification Response Parameters (Merchant → Paylabs)

Header

Data Signing Rules

Field NameTypeValueRequired
Content-TypeString(30)Fixed value "application/json;charset=utf-8"Yes
X-TIMESTAMPString(29)Current time, format 2022-09-16T16:58:47.964+07:00Yes
X-SIGNATUREString(64)Signature. For details please check Data Signing RulesYes
X-PARTNER-IDString(20)Merchant IDYes
X-REQUEST-IDString(64)Unique ID for each requestYes

Body

Error Code

ParameterTypeRequiredRemarks
requestIdString(64)YesUnique identifier on every request
errCodeString(32)Yes0 means success, otherwise see Error Code
errCodeDesString(128)NoError Description
merchantIdString(20)YesMerchant ID
storeIdString(30)NoIf using branch store ID