refund.status specific events:
These are the events created and triggered when the status of the refund object changes.| Event | Description | Default (on/off) |
|---|---|---|
| refund.succeeded | When a refund has succeeded | On |
| refund.failed | When a refund fails | On |
| refund.rejected | When a refund request is rejected | On |
| refund.pending | When a refund is pending to be processed | On |
refund.pending
JSON
{
"type": "refund.pending",
"created_at": "2023-07-23T23:59:56.000000Z",
"data": {
"id": "rfd_ahfafooi7ibakbfahoan",
"object": "refund",
"payin": "chk_cirsp2sl4ar024j0akj0",
"amount": 90000,
"currency": "USD",
"customer_receives": {
"currency": "SGD",
"amount": 133200
},
"payment_attempt": "pat_ahbfiuahfiuaiofnioain",
"reason": "Damaged Goods",
"status": "pending",
"status_reason": "",
"holding_currency": "USD",
"balance_transaction": "",
"reference_id": "order_12345",
"webhook_url": "https://mystore.webhook.tazapay.refund/",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"created_at": "2023-07-23T23:59:56.000000Z"
},
"id": "evt_auigfianfoangohuehg",
"object": "event"
}
refund.succeeded
JSON
{
"type": "refund.succeeded",
"created_at": "2023-07-24T00:05:12.000000Z",
"data": {
"id": "rfd_ahfafooi7ibakbfahoan",
"object": "refund",
"payin": "chk_cirsp2sl4ar024j0akj0",
"amount": 90000,
"currency": "USD",
"customer_receives": {
"currency": "SGD",
"amount": 133200
},
"payment_attempt": "pat_ahbfiuahfiuaiofnioain",
"reason": "Damaged Goods",
"status": "succeeded",
"status_reason": "",
"holding_currency": "USD",
"balance_transaction": "btr_d679f6dqd9ne66lsngb0",
"reference_id": "order_12345",
"webhook_url": "https://mystore.webhook.tazapay.refund/",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"created_at": "2023-07-23T23:59:56.000000Z"
},
"id": "evt_auigfianfoangohuehg",
"object": "event"
}
refund.failed
JSON
{
"type": "refund.failed",
"created_at": "2023-07-24T00:05:12.000000Z",
"data": {
"id": "rfd_ahfafooi7ibakbfahoan",
"object": "refund",
"payin": "chk_cirsp2sl4ar024j0akj0",
"amount": 90000,
"currency": "USD",
"customer_receives": {
"currency": "SGD",
"amount": 133200
},
"payment_attempt": "pat_ahbfiuahfiuaiofnioain",
"reason": "Damaged Goods",
"status": "failed",
"status_reason": "Refund could not be processed",
"holding_currency": "USD",
"balance_transaction": "",
"reference_id": "order_12345",
"webhook_url": "https://mystore.webhook.tazapay.refund/",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"created_at": "2023-07-23T23:59:56.000000Z"
},
"id": "evt_auigfianfoangohuehg",
"object": "event"
}
refund.rejected
JSON
{
"type": "refund.rejected",
"created_at": "2023-07-24T00:05:12.000000Z",
"data": {
"id": "rfd_ahfafooi7ibakbfahoan",
"object": "refund",
"payin": "chk_cirsp2sl4ar024j0akj0",
"amount": 90000,
"currency": "USD",
"customer_receives": {
"currency": "SGD",
"amount": 133200
},
"payment_attempt": "pat_ahbfiuahfiuaiofnioain",
"reason": "Damaged Goods",
"status": "rejected",
"status_reason": "Refund request was rejected",
"holding_currency": "USD",
"balance_transaction": "",
"reference_id": "order_12345",
"webhook_url": "https://mystore.webhook.tazapay.refund/",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"created_at": "2023-07-23T23:59:56.000000Z"
},
"id": "evt_auigfianfoangohuehg",
"object": "event"
}
Tracking details
Stablecoin refunds carry atracking_details object with the on-chain details of the refund transfer, for example when Tazapay returns the funds of a failed collect to the payer’s wallet (see Reversals). For these refunds, payin holds the ID of the collect. Keys without a value are left out, and refunds on other payment methods do not include the object.
| Field | Type | Description |
|---|---|---|
| tx_hash | string | On-chain hash of the refund transfer. The format depends on the chain: ^0x[a-fA-F0-9]{64}$ for EVM chains (ethereum, polygon, base, avalanche, arc), ^[a-fA-F0-9]{64}$ for tron and stellar, and ^[1-9A-HJ-NP-Za-km-z]{86,88}$ for solana. |
| chain | string | Blockchain network the refund was sent on, for example ethereum, polygon, solana, tron, base, avalanche, stellar or arc. |
| destination_address | string | Payer’s wallet address the funds were returned to. The format depends on the chain: ^0x[a-fA-F0-9]{40}$ for EVM chains, ^T[1-9A-HJ-NP-Za-km-z]{33}$ for tron, ^[1-9A-HJ-NP-Za-km-z]{32,44}$ for solana, and ^G[A-Z2-7]{55}$ for stellar. |
| destination_tag | string | Memo or destination tag sent with the transfer, for chains that use one (for example stellar). |
| source_address | string | Tazapay wallet address the refund was sent from: the deposit address of the collection wallet that received the original payment. Same format as destination_address. |
refund.succeeded — stablecoin collect reversal
JSON
{
"type": "refund.succeeded",
"created_at": "2026-11-11T10:20:10.000000Z",
"data": {
"id": "rfd_d4r7w4ll3trfnd85q2a0",
"object": "refund",
"payin": "col_cus74hm5ainf6atiabs0",
"amount": 1000,
"currency": "USD",
"customer_receives": {
"currency": "USD",
"amount": 1000
},
"payment_attempt": "pat_cus74hm5ainf6atiabt0",
"reason": "Collect Reversal",
"status": "succeeded",
"status_reason": "",
"holding_currency": "USD",
"balance_transaction": "",
"reference_id": "",
"webhook_url": "",
"metadata": {},
"tracking_details": {
"tx_hash": "0x5f2b8c1d9e4a7b3c6d0e1f2a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e",
"chain": "ethereum",
"destination_address": "0x8ba1f109551bd432803012645ac136ddd64dba72",
"source_address": "0x3f5ce5fbfe3e9af3971dd833d26ba9b5c936f0be"
},
"created_at": "2026-11-11T10:10:12.288984Z"
},
"id": "evt_d4r7w4ll3trfndq7385q5",
"object": "event"
}
Other events:
| Event | Description | Default (on/off) |
|---|---|---|
| refund.created | When a refund object is created for the account | On |
refund.created
JSON
{
"type": "refund.created",
"created_at": "2023-07-23T23:59:56.000000Z",
"data": {
"id": "rfd_ahfafooi7ibakbfahoan",
"object": "refund",
"payin": "chk_cirsp2sl4ar024j0akj0",
"amount": 90000,
"currency": "USD",
"customer_receives": {
"currency": "SGD",
"amount": 133200
},
"payment_attempt": "pat_ahbfiuahfiuaiofnioain",
"reason": "Damaged Goods",
"status": "requested",
"status_reason": "",
"holding_currency": "USD",
"balance_transaction": "",
"reference_id": "order_12345",
"webhook_url": "https://mystore.webhook.tazapay.refund/",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"created_at": "2023-07-23T23:59:56.000000Z"
},
"id": "evt_auigfianfoangohuehg",
"object": "event"
}