# DetachedRefundInput

Input · GraphQL API

Specific input fields for describing a detached refund.

## Fields

- `amount` (`Amount!`) — required: The amount to refund.
- `orderId` (`String`): The refund's order ID.
- `merchantAccountId` (`ID`): ID of the merchant account that will be used when performing the refund.
- `customFields` (`[CustomFieldInput!]`): Collection of custom field/value pairs. You must [set up each custom field in the Control Panel](https://articles.braintreepayments.com/control-panel/custom-fields#creating-a-custom-field) prior to passing it with a request.
- `descriptor` (`TransactionDescriptorInput`): Fields used to define what will appear on a customer's statement (for instance, credit card or bank statement) for this refund. This should match the original transaction if possible.

## Used by

- [RefundCreditCardInput](/braintree/graphql/reference/types/refund-credit-card-input) — Input; refund
- [RefundInStoreCreditCardInput](/braintree/graphql/reference/types/refund-in-store-credit-card-input) — Input; refund
- [RefundUsBankAccountInput](/braintree/graphql/reference/types/refund-us-bank-account-input) — Input; refund

## GraphQL definition

```graphql
input DetachedRefundInput {
  amount: Amount!
  orderId: String
  merchantAccountId: ID
  customFields: [CustomFieldInput!]
  descriptor: TransactionDescriptorInput
}
```

---

[View the complete GraphQL schema on GitHub](https://raw.githubusercontent.com/braintree/graphql-api/refs/heads/master/schema.graphql)