Refund

These are the events for which webhooks will be triggered:

refund.status specific events:

These are the events created and triggered when the status of the refund object changes.

EventDescriptionDefault (on/off)
refund.succeededWhen a refund has succeededOn
refund.failedWhen a refund failsOn
refund.pendingWhen a refund is pending to be processedOn

refund.pending

{
  "type":"refund.pending",
  "created_at":958793503,
  "data":{
    "id":"rfd_ahfafooi7ibakbfahoan",
    "object":"refund",
    "created_at":7942792,
    ......
    ...... //Entire refund object
    ........
  },
  "id":"evt_auigfianfoangohuehg",
  "object":"event"
}

refund.succeeded

{
  "type":"refund.succeeded",
  "created_at":958793503,
  "data":{
    "id":"rfd_ahfafooi7ibakbfahoan",
    "object":"refund",
    "created_at":7942792,
    ......
    ...... //Entire refund object
    ........
  },
  "id":"evt_auigfianfoangohuehg",
  "object":"event"
}

refund.failed

{
  "type":"refund.failed",
  "created_at":958793503,
  "data":{
    "id":"rfd_ahfafooi7ibakbfahoan",
    "object":"refund",
    "created_at":7942792,
    ......
    ...... //Entire refund object
    ........
  },
  "id":"evt_auigfianfoangohuehg",
  "object":"event"
}

Other events:

EventDescriptionDefault (on/off)
refund.createdWhen a refund object is created for the accountOn

refund.created

{
  "type":"refund.created",
  "created_at":958793503,
  "data":{
    "id":"rfd_ahfafooi7ibakbfahoan",
    "object":"refund",
    "created_at":7942792,
    ......
    ...... //Entire refund object
    ........
  },
  "id":"evt_auigfianfoangohuehg",
  "object":"event"
}