Allows to control the refunds through API call

It allows refunding of a transaction that has previously been charged successfully, and not yet refunded.

It may include or exclude the merchant's processing fee, based on agreements & account configurations. And funds will be refunded to the same card used to make the transaction.

Full refund
A full refund returns the total amount of the transaction to the customer — it can only be performed once.

Partial refund
Any partial amount, but it should not exceed the original payment total amount. Multiple partial requests are possible

Refund API Call

Sample request

{
	"charge_id": "chg_TS07A2120231341g9R42703981",
	"amount": 1,
	"currency": "KWD",
	"description": "Test Description",
	"reason": "requested_by_customer",
	"reference": {
		"merchant": "txn_0001"
	},
	"metadata": {
		"udf1": "test1",
		"udf2": "test2"
	},
	"post": {
		"url": "http://your_url.com/post"
	}
}