# RefundNotification

> A schema in the Payments API reference. Source: https://hub.ozow.com/api-reference/payments-api/schemas/refund-notification/

Notification sent to the `notifyUrl` once the transaction has been concluded and the status of the payment can be determined.

## Fields

- `RefundId` (string, uuid, required) - The refund identifier.
- `TransactionId` (string, uuid, required) - The transaction identifier of the transaction that is being refunded.
- `CurrencyCode` (string, required, max length 3) - The refund currency. Will always be the same as the amount in the transaction.
- `Amount` (number, double, required) - The refund amount, in the currency the currency code names. Written with two decimal places, which is the form the hash is built from.
- `IsRtc` (string, required) - An indication of whether RTC was used to pay the refund.
- `Status` (string, required, one of "Pending", "Submitted", "Complete", "Failed", "Cancelled", "Returned", "PendingInvestigation", "Invalid", "Error") - The refund status. Sent as the name, not as a number, because the notification is form encoded and the status is written out in full.
- `BankName` (string, required, max length 50) - The name of the bank the refund was paid to.
- `AccountNumber` (string, required, max length 50) - The masked account number payment was made to. The hash is built from the masked value, so hash what you received rather than the number you sent.
- `StatusMessage` (string, max length 500) - Message regarding the status of the refund. This field will not always have a value.
- `Hash` (string, required, max length 128) - SHA512 hash used to ensure that certain fields in the message have not been altered after the hash was generated.
