Apace will notify the merchant after we sent a successful refund

When the customer successfully receives the refund, Apace will notify the merchant via POST to the endpoint specified by the merchant.

🚧

To avoid duplicate orders, you should set up your server to process this data, and update your database to reflect that Apace refunded this order.

The webhook body will look like this

{
  "refund_success":true,
  "refund_id":"68582147-8230-4470-939a-877b111e9bae",
  "date_created":"2022-06-02T21:35:51.758Z",
  "datetime_refund_sent":"2022-06-02T21:38:42.013Z",
  "apace_refund_link":"https://merchant.apacepayments.com/app/refund/68582147-8230-4470-939a-877b111e9bae",
  "order_id":"5448-556544-5425",
  "item_ids":["123456"],
  "refund_card":"**** **** ***** 7001",
  "network":"VISA",
  "network_transaction_id":"zfu7mmygw0-0079-vk2jfiggh66stqu2w80rukqu"
}
AttributeTypeDescription
refund_successboolThe refund status
refund_idstringThe unique identifier of the refund
date_createddatetimeThe date and time the refund offer was created
datetime_refund_sentdatetimeThe date and time the refund was sent by Apace
apace_refund_linkstringThe unique link to the Apace merchant portal to access a full overview of the refund
order_idstringThe merchant ID of the refunded order
item_idsarrayThe merchant IDs of the refunded items
refund_cardstringThe card that Apace sent the refund to
networkstringThe network that was used to send the refund
network_transaction_idstringThe unique transaction identifier of the network referencing the successful transaction