# Refund A collection of endpoints for creating and managing transaction reimbursement ## Methods | Method | HTTP | Path | Summary | |---|---|---|---| | `create` | `POST` | `/refund` | Create Refund | | `fetch` | `GET` | `/refund/{id}` | Fetch Refund | | `list` | `GET` | `/refund` | List Refunds | | `retry_` | `POST` | `/refund/retry_with_customer_details/{id}` | Retry Refund | --- ## `create` **HTTP:** `POST` **Path:** `/refund` ```ruby paystack.refund.create({ ... }) ``` ### Body Fields | Name | Required | |---|---| | `transaction` | true | | `amount` | false | | `currency` | false | | `customer_note` | false | | `merchant_note` | false | ## `fetch` **HTTP:** `GET` **Path:** `/refund/{id}` ```ruby paystack.refund.fetch(id) ``` ### Path Parameters | Name | Required | |---|---| | `id` | true | ## `list` **HTTP:** `GET` **Path:** `/refund` ```ruby paystack.refund.list({ ... }) ``` ### Query Fields | Name | Required | |---|---| | `perPage` | false | | `page` | false | | `from` | false | | `to` | false | ## `retry_` **HTTP:** `POST` **Path:** `/refund/retry_with_customer_details/{id}` ```ruby paystack.refund.retry_(id, { ... }) ``` ### Path Parameters | Name | Required | |---|---| | `id` | true | ### Body Fields | Name | Required | |---|---| | `refund_account_details` | true |