Refund successful
After your customer fills out the required information and gets approved, they will receive their refund within seconds. We will promptly trigger the webhook URL that you entered when creating the refund object to update you on the refund progress
Once Apace initiates the refund you will receive a pending status which will look like this:
{
"refund_success":false,
"refund_status":"pending",
"refund_id":"68582147-8230-4470-939a-877b111e9bae",
"date_created":"2022-06-02T21:35:51.758Z",
"datetime_refund_sent":null,
"apace_refund_link":"https://merchant.apacerefunds.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"
}
Once the refund has successfully been deposited into your customer's bank (usually 20 seconds after initiation) you will receive a success webhook
{
"refund_success":true,
"refund_status":"processed",
"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.apacerefunds.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"
}
Remember!
To avoid duplicate refunds, you should set up your server to process this data, and update your database to reflect that Apace refunded this order as soon as you receive the
"refund_status":"pending"
webhook.