Allows a merchant to refund a completed transaction, sending the entire value of the transaction back to the user.

Parameters


transactionId

A unique Luxon transaction identifier that can be used as a reference in other API calls.


comment

A comment giving a reason for the refund (visible to merchant and user).


 

Request Post

.../api/v1/merchant/transaction/{transactionId}/refund

{
“comment”: “string”
}

Returns


status

A status object with the status of the transaction.


 

Response

{
"userWallet": "string", // user's wallet ID
"status": {
"code": "string",
"message": "string"
}
}

Notes

Merchant will be notified by a webhook call when the refund is finalised.