# refundPayment

### Arguments

| Argument                                                                                                              | Description                  |
| --------------------------------------------------------------------------------------------------------------------- | ---------------------------- |
| input ([RefundPaymentInput](https://developer.firmhouse.com/graphql-api/api-reference/objects/refund-payment-input)!) | Parameters for RefundPayment |

### RefundPaymentInput Arguments

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

### Return fields

#### errors (\[[ModelValidationError](https://developer.firmhouse.com/graphql-api/api-reference/objects/model-validation-error)!]!)

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

#### payment ([Payment](https://developer.firmhouse.com/graphql-api/api-reference/objects/payment))

The payment the refund is issued for.

#### refund ([Refund](https://developer.firmhouse.com/graphql-api/api-reference/objects/refund))

The refund when succesfully issued.
