> For the complete documentation index, see [llms.txt](https://developer.firmhouse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.firmhouse.com/graphql-api/api-reference/mutations/refund-payment.md).

# refundPayment

### Arguments

| Argument                                                                                  | Description                  |
| ----------------------------------------------------------------------------------------- | ---------------------------- |
| input ([RefundPaymentInput](/graphql-api/api-reference/objects/refund-payment-input.md)!) | Parameters for RefundPayment |

### RefundPaymentInput Arguments

| Argument                                                         | Description                                                                            |
| ---------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| id ([ID](/graphql-api/api-reference/objects/id.md))              | ID of the payment to issue the refund for. When provided, invoice\_id is ignored.      |
| invoiceId ([ID](/graphql-api/api-reference/objects/id.md))       | ID of the invoice to find a paid payment for refunding when no payment ID is provided. |
| amount ([Float](/graphql-api/api-reference/objects/float.md)!)   | Amount to refund.                                                                      |
| reason ([String](/graphql-api/api-reference/objects/string.md)!) | Reason for issuing the refund.                                                         |

### Return fields

#### errors (\[[ModelValidationError](/graphql-api/api-reference/objects/model-validation-error.md)!]!)

Errors while issuing the refund. Can also contain error messages from the payment service provider.

#### payment ([Payment](/graphql-api/api-reference/objects/payment.md))

The payment the refund is issued for.

#### refund ([Refund](/graphql-api/api-reference/objects/refund.md))

The refund when succesfully issued.
