# Refund

This resource represents a refund transaction from your Glomo account to your customer. You can retrieve it to see the details of the refund transaction.

 - [Refund](https://docs.glomo.one/api-reference/openapi/refund/refund.md): Schema: #/components/schemas/Refund
 - [POST /refunds](https://docs.glomo.one/api-reference/openapi/refund/createrefund.md): Creates refund for a payment entity if the payment is in success state and no other refund exists.
 - [GET /refunds](https://docs.glomo.one/api-reference/openapi/refund/getrefunds.md): Returns a list of refunds in response. The refunds are returned sorted by creation date, with the most recent refund appearing first.
 - [GET /refunds/{id}](https://docs.glomo.one/api-reference/openapi/refund/getrefundbyid.md): Retrieves a single refund by ID, including its current status. A failed refund carries `error_code` and `error_message`, but these are not yet the specific reason recorded against the refund — every f
 - [PATCH /refunds/{id}/mock_update_status](https://docs.glomo.one/api-reference/openapi/refund/mockupdaterefund.md): Sandbox only. Moves a refund to `success` or `failed` so you can test how your integration handles each outcome.
