The refund endpoint enables merchants to initiate refunds (Full and Partial) for previously processed transactions via a PUT request. It requires the original transaction reference and processes the specified refund amount using either the Nectar-generated or merchant reference.
Note: When initiating a refund for a transaction, there are two possible results:
Refunded – The refund is successfully processed and approved.
Declined – The refund request is rejected due to insufficient funds, invalid transaction reference, expired authorization, or other restrictions.
Endpoint
PUT /transaction/refund/{{transactionReference}}
Headers
Key
Value
Required
Description
Content-Type
application/json
Yes
Specifies JSON payload format.
Authorization
{{private_key}}
Yes
Merchant's private key for authentication.
Request Parameters
Path Parameter
Parameter
Type
Description
transactionReference
string
Unique reference of the original transaction to refund.