Refund
Refund API is designed to issue refunds on an existing transaction. This API can't be used to issue standalone refunds or credits.
POST https://<PayEngine-host>/api/payment/refund
Request Body
amount*
string
Amount to be refunded. Should be less or equal to available transaction amount
id*
string
Transaction ID
reason*
string
Reason for the refund
metadata
object
Add any additional metadata by passing a json object
internal_transaction_id
string
An internal ID from integrating system. Will be returned in the response and associated refunds if provided.
id
string
PayEngine payment ID for the sale request
Required
transaction_id
string
Unique transaction ID
Required
merchant_id
string
Merchant ID
Required
gateway_id
string
ID of the gateway through which the transaction is processed
Optional
reason
string
Reason provided in the request
Required
token
string
Card token used in the original transaction
Required
internal_transaction_id
string
An internal ID from integrating system. Will be returned in the response and associated refunds if provided. If not provided in the request, the internal_transaction_id from the original sale transaction will be returned
Optional
order_number
string
Order number provided in the original transaction
Optional
return_response
object
Refer to Credit Card Sale (SaleResponse) or ACH Sale (AchResponse) object definitions
Required
metadata
object
Return all the metadata sent in the request
Optional
Sample Request / Response
Example Request
Example Response
Webhook Payload Example
Last updated