---
updatedAt: 2025-06-11T23:18:42.000Z
agentTools:
  projectIndex: https://developers.edgepay.io/llms.txt
---

# Auto Triggered Refunds

<HTMLBlock>{`
<div></div>

<style>
.markdown-body {
  --md-code-background: #0d152d;
  --md-code-text: #d3d5d2;
  --md-code-tabs: #87cefa;
  --md-code-radius: 10px;
}
    h1{
		font-family: 'VERDANA', serif;
		font-size: 1.5em;
		letter-spacing: 0.08em;
		font-weight: 300;
		color: #27407a;
		text-shadow: 0 1px 1px #9c9c9c;
    text-transform: uppercase;
      letter-spacing: -1px;

}
  
  p {
  	font-size: 1.0em;
	font-family: Tahoma;
    letter-spacing: 1px;
    line-height: 1.5;
    font-size: 15px;
  }

  
  
</style>
`}</HTMLBlock>

When a transaction is declines due to invalid **Address Verification** (AVS) the transaction will trigger an Auto Refund event.

##

```json auto_refund_succeeded
{
  "id": "8b690db2-5297-46c2-982a-211a1e206e01",
  "event_type": "auto_refund_succeeded",
  "timestamp": 1624483517836,
  "event_data": {
    "edgepay_card_transaction_merchant_id": "888000002826",
    "edgepay_card_transaction_terminal_id": "88800000282601",
    "edgepay_external_reference_id": "1234561624483513",
    "edgepay_generated_transaction_id": "CS48226832795025873",
    "edgepay_generated_transaction_ref_id": "CS61385110346162405",
    "edgepay_card_transaction_token_id": "5840938697279316",
    "edgepay_card_transaction_type": "REFUND",
    "edgepay_card_transaction_payment_data_input": "Manualentry",
    "edgepay_card_transaction_status": "AUTO-REFUNDED",
    "edgepay_card_transaction_response_code": "A0014",
    "edgepay_card_transaction_response_message": "Return requested, Void successful",
    "edgepay_card_transaction_masked_card_number": "401200******5439",
    "edgepay_card_transaction_date": "2021-06-23T21:25:16",
    "edgepay_card_transaction_requested_amount": "2.15",
    "edgepay_card_transaction_instrument_brand": "Visa",
    "edgepay_card_transaction_billing_zip": "55555",
    "edgepay_card_transaction_amount": 2.15,
    "edgepay_processor_transaction_id": "10372023"
  }
}
```

<HTMLBlock>{`
<div></div>

<style>
.Header-topuTMpygDG4e1V.rm-Header-top{

	 background-image: url("https://files.readme.io/6d6bac0-Header-sample.png");
   background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center top;
}
  div.Header-bottom2eLKOFXMEmh5{
  
    background-image: url("https://files.readme.io/6d6bac0-Header-sample.png");
    
  }
  
  

</style>
`}</HTMLBlock>