Payment Refund
Changed onPrimer notifies you with a PAYMENT.REFUND Webhook when a refund request has been fully processed by a payment processor and the refund has reached a final state.
Check the transaction with the most recent transactionType: "REFUND" in the transactions array:
- if processorStatus is SETTLED, the refund was successful and the funds have been returned to the customer
- if processorStatus is FAILED, the refund was unsuccessful
Learn more about how Primer handles webhooks.
Request
- Base URLhttps://api.sandbox.primer.io
- URLhttps://api.sandbox.primer.io/payment-refund
- Authnone declared. Required headers: X-Signature-Primary, X-Signature-Secondary
Headers
An HMAC signature generated using the webhook payload and a shared signing secret. This is then converted to a base64 encoded string.
A secondary signature that is added when you have rotated your secret within the past 24 hours.
Request body
Example request
{
"signedAt": "1689221338",
"version": "2.4",
"payment": {
"transactions": [
{
"reason": "Item returned."
}
],
"riskData": {
"fraudChecks": {
"source": "FRAUD_PROVIDER"
},
"cvvCheck": {
"source": "PROCESSOR"
},
"avsCheck": {
"source": "PROCESSOR"
}
}
}
}Response
Return a 200 status to indicate that the data was received successfully
Changes
- info
added the new
XCGenum value to the request property/////// - info
added the new
XCGenum value to the request property//// - info
added the new
ZWGenum value to the request property/////// - info
added the new
ZWGenum value to the request property////
- info
- info
added the new optional request property
//////
- info