The refund entity returned by Razorpay is as shown below. It will be returned in JSON form by the API (or in the object form if using language SDKs).
:string Unique identifier of the refund.
string Indicates type of entity.
integer The amount to be refunded, either partial or full. If you want to refund only a partial amount to the customer, enter the amount less than the captured amount. Else, the entire captured amount is refunded fully to the customer.
:string The currency of amount associated with the refund.
:string Unique identifier of the payment for which the refund is requested.
:integer Timestamp of refund creation.
dictionary Key-value store for storing your reference data.
You can modify an existing Refund to update the Notes field only. Notes can be used to record additional information about the payment. You can add up to 15 key-value pairs with each value of the key not exceeding 256 characters.
Using the PATCH operation, you can replace the entire notes object for the entity.