Skip to content

Asynchronous notification for Refund

Request

Header Parameters

Content-type
string
Fixed value application/json
DateTime
string
Request time, The format is `YYYY-MM-DDThh:mm:ssZhh:00` such as` 2020-03-04T15:39:40Z08:00`.
MsgID
string
The suggested value is UUID or GUID to mark this request, such `2d21a5715c034efb7e0aa383b885fc7a`, Do not exceed 32 characters in length;
SignType
string
Algorithm for calculating signatures.`SHA256` or `SHA512`

Request Body schema

eventCode
string<= 32 characters
Required
Notification type, with a value of “Capture”.
metadata
string<= 512 characters
Attachment information
multipleCapture
object
paymentMethod
object
pspData
object
Returned capture is successful
refund
object
This is the related information for the Refund and CancelorRefund transaction processed
result
object
Required
Request result message
standaloneCapture
object
Original standalone capture transaction informational
“payment” or “capture”
object
Required
Original payment transaction information. When the original transaction is Purchase, this field’s name is “payment”. When the original transaction is pre-authorization completion, this field’s name is “capture”.
Try it
Server
https://online-uat.everonet.com
Header Parameters
Request Body Parameters
Request Samples
cURL
curl -i -X POST \
'https://online-uat.everonet.com/offline_refund_webhook' \
 -H 'Content-type: application/json' \
 -H 'DateTime: string' \
 -H 'MsgID: string' \
 -H 'SignType: string' \
 -d '{
  "eventCode": "string",
  "metadata": "string",
  "multipleCapture": {
    "evoTransInfo": {
      "evoTransID": "string",
      "evoTransTime": "string",
      "retrievalReferenceNum": "string",
      "traceNum": "string"
    },
    "failureCode": "string",
    "failureReason": "string",
    "merchantTransInfo": {
      "merchantOrderReference": "string",
      "merchantTransID": "string",
      "merchantTransTime": "string"
    },
    "pspFailureCode": "string",
    "pspFailureReason": "string",
    "pspTransInfo": {
      "authorizationCode": "string",
      "pspTransID": "string",
      "pspTransTime": "string"
    },
    "status": "string",
    "transAmount": {
      "currency": "string",
      "value": "string"
    }
  },
  "paymentMethod": {
    "card": {
      "first6No": "string",
      "fundingType": "string",
      "holderName": "string",
      "icCardData": "string",
      "isCommercial": true,
      "issuerCountry": "string",
      "issuingBank": "string",
      "issuingCountry": "string",
      "last4No": "string",
      "paymentBrand": "string"
    },
    "paymentAccountReference": "string",
    "type": "string"
  },
  "pspData": {
    "extra": "string",
    "name": "string",
    "networkToken": "string",
    "networkTxReference": "string",
    "recurringProcessingModel": "string",
    "sponsorCode": "string"
  },
  "refund": {
    "evoTransInfo": {
      "evoTransID": "string",
      "evoTransTime": "string",
      "retrievalReferenceNum": "string",
      "traceNum": "string"
    },
    "failureCode": "string",
    "failureReason": "string",
    "merchantTransInfo": {
      "merchantOrderReference": "string",
      "merchantTransID": "string",
      "merchantTransTime": "string"
    },
    "pspFailureCode": "string",
    "pspFailureReason": "string",
    "pspTransInfo": {
      "authorizationCode": "string",
      "merchantAdviceCode": "string",
      "pspTransID": "string",
      "pspTransTime": "string"
    },
    "status": "string",
    "transAmount": {
      "currency": "string",
      "value": "string"
    }
  },
  "result": {
    "code": "string",
    "message": "string",
    "pspMessage": "string",
    "pspResponseCode": "string"
  },
  "standaloneCapture": {
    "evoTransInfo": {
      "evoTransID": "string",
      "evoTransTime": "string",
      "retrievalReferenceNum": "string",
      "traceNum": "string"
    },
    "failureCode": "string",
    "failureReason": "string",
    "merchantTransInfo": {
      "merchantOrderReference": "string",
      "merchantTransID": "string",
      "merchantTransTime": "string"
    },
    "pspTransInfo": {
      "authorizationCode": "string"
    },
    "status": "string",
    "transAmount": {
      "currency": "string",
      "value": "string"
    }
  },
  "“payment” or “capture”": {
    "billingAmount": {
      "currency": "string",
      "value": "string"
    },
    "billingFXRate": {
      "baseCurrency": "string",
      "date": "string",
      "quoteCurrency": "string",
      "source": "string",
      "value": "string"
    },
    "evoTransInfo": {
      "evoTransID": "string",
      "evoTransTime": "string",
      "retrievalReferenceNum": "string",
      "traceNum": "string"
    },
    "failureCode": "string",
    "failureReason": "string",
    "merchantTransInfo": {
      "merchantOrderReference": "string",
      "merchantTransID": "string",
      "merchantTransTime": "string"
    },
    "pspFailureCode": "string",
    "pspFailureReason": "string",
    "pspTransInfo": {
      "authorizationCode": "string",
      "merchantAdviceCode": "string",
      "pspTransID": "string",
      "pspTransTime": "string"
    },
    "status": "string",
    "transAmount": {
      "currency": "string",
      "value": "string"
    }
  }
}'
JavaScript
fetch(
`https://online-uat.everonet.com/offline_refund_webhook`,
{
  method: 'post',
  headers: {
  'Content-type': 'application/json',
  'DateTime': 'string',
  'MsgID': 'string',
  'SignType': 'string'
},
  body: '{
  "eventCode": "string",
  "metadata": "string",
  "multipleCapture": {
    "evoTransInfo": {
      "evoTransID": "string",
      "evoTransTime": "string",
      "retrievalReferenceNum": "string",
      "traceNum": "string"
    },
    "failureCode": "string",
    "failureReason": "string",
    "merchantTransInfo": {
      "merchantOrderReference": "string",
      "merchantTransID": "string",
      "merchantTransTime": "string"
    },
    "pspFailureCode": "string",
    "pspFailureReason": "string",
    "pspTransInfo": {
      "authorizationCode": "string",
      "pspTransID": "string",
      "pspTransTime": "string"
    },
    "status": "string",
    "transAmount": {
      "currency": "string",
      "value": "string"
    }
  },
  "paymentMethod": {
    "card": {
      "first6No": "string",
      "fundingType": "string",
      "holderName": "string",
      "icCardData": "string",
      "isCommercial": true,
      "issuerCountry": "string",
      "issuingBank": "string",
      "issuingCountry": "string",
      "last4No": "string",
      "paymentBrand": "string"
    },
    "paymentAccountReference": "string",
    "type": "string"
  },
  "pspData": {
    "extra": "string",
    "name": "string",
    "networkToken": "string",
    "networkTxReference": "string",
    "recurringProcessingModel": "string",
    "sponsorCode": "string"
  },
  "refund": {
    "evoTransInfo": {
      "evoTransID": "string",
      "evoTransTime": "string",
      "retrievalReferenceNum": "string",
      "traceNum": "string"
    },
    "failureCode": "string",
    "failureReason": "string",
    "merchantTransInfo": {
      "merchantOrderReference": "string",
      "merchantTransID": "string",
      "merchantTransTime": "string"
    },
    "pspFailureCode": "string",
    "pspFailureReason": "string",
    "pspTransInfo": {
      "authorizationCode": "string",
      "merchantAdviceCode": "string",
      "pspTransID": "string",
      "pspTransTime": "string"
    },
    "status": "string",
    "transAmount": {
      "currency": "string",
      "value": "string"
    }
  },
  "result": {
    "code": "string",
    "message": "string",
    "pspMessage": "string",
    "pspResponseCode": "string"
  },
  "standaloneCapture": {
    "evoTransInfo": {
      "evoTransID": "string",
      "evoTransTime": "string",
      "retrievalReferenceNum": "string",
      "traceNum": "string"
    },
    "failureCode": "string",
    "failureReason": "string",
    "merchantTransInfo": {
      "merchantOrderReference": "string",
      "merchantTransID": "string",
      "merchantTransTime": "string"
    },
    "pspTransInfo": {
      "authorizationCode": "string"
    },
    "status": "string",
    "transAmount": {
      "currency": "string",
      "value": "string"
    }
  },
  "“payment” or “capture”": {
    "billingAmount": {
      "currency": "string",
      "value": "string"
    },
    "billingFXRate": {
      "baseCurrency": "string",
      "date": "string",
      "quoteCurrency": "string",
      "source": "string",
      "value": "string"
    },
    "evoTransInfo": {
      "evoTransID": "string",
      "evoTransTime": "string",
      "retrievalReferenceNum": "string",
      "traceNum": "string"
    },
    "failureCode": "string",
    "failureReason": "string",
    "merchantTransInfo": {
      "merchantOrderReference": "string",
      "merchantTransID": "string",
      "merchantTransTime": "string"
    },
    "pspFailureCode": "string",
    "pspFailureReason": "string",
    "pspTransInfo": {
      "authorizationCode": "string",
      "merchantAdviceCode": "string",
      "pspTransID": "string",
      "pspTransTime": "string"
    },
    "status": "string",
    "transAmount": {
      "currency": "string",
      "value": "string"
    }
  }
}'
})
  .then(response => response.json())
  .then(data => console.log(data));
Response Samples
*/*
json