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://<Platform-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
internalTransactionID
string
An internal ID from integrating system. Will be returned in the response and associated refunds if provided.
metadata
object
Add any additional metadata by passing a json object
ID
string
Platform system ID for the sale request
Required
TransactionID
string
Unique transaction ID
Required
MerchantID
string
Merchant ID
Required
reason
string
Reason provided in the request
Required
token
string
Card token used in the original transaction
Required
internalTransactionID
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 internalTransactionID from the original sale transaction will be returned
Optional
order_number
string
Order number provided in the original transaction
Optional
Metadata
object
Return all the metadata sent in the request
Optional
ReturnResponse
Object
Refer to Credit Card Sale (SaleResponse) or ACH Sale (AchResponse) object definitions
Required
device
object
Device Object. This would exist for device based transactions
Optional
device.id
string
Device ID
device.type
string
Device Type
device.name
string
Device Name
device.model
string
Device Model
device.serial_number
string
Device Serial Number
device.sdk_version
string
Device SDK Version
device.manufacturer
string
Device Manufacturer
device.app_version
string
Device App Version
device.os
string
Device Operating System
device.os_version
string
Device OS version
Sample Request / Response
Example Request
{
"id": "9a0df7ef-b77f-4525-97e1-f41a98ad7f75",
"amount": 10,
"reason": "Discount issued",
"internalTransactionID": "121212",
"metadata": {
"customerId": "123",
"email" : "[email protected]"
}
}
Last updated