> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.stripe.core.CreateRefund

- Component: `appmixer.stripe.core.CreateRefund`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.stripe 3.1.0](https://connectors.appmixer.com/connector/appmixer.stripe/3.1.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.stripe/3.1.0/component/appmixer.stripe.core.CreateRefund>

Creates a refund for a specified charge, returning funds to the customer.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Charge Id (`charge`) | text | The identifier of the charge to refund. |
| Amount (`amount`) | number | The amount to refund, if partial refund is desired. |
| Reason (`reason`) | text | Reason for the refund. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Id (`id`) | string | - |
| Object (`object`) | string | - |
| Amount (`amount`) | number | - |
| Status (`status`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.stripe.core.CreateRefund",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Creates a refund for a specified charge, returning funds to the customer.",
  "version": "1.0.0",
  "private": false,
  "auth": {
    "service": "appmixer:stripe"
  },
  "quota": {
    "manager": "appmixer:stripe",
    "resources": "requests"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "charge": {
            "type": "string"
          },
          "amount": {
            "type": "number"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "charge",
          "amount"
        ]
      },
      "inspector": {
        "inputs": {
          "charge": {
            "type": "text",
            "tooltip": "The identifier of the charge to refund.",
            "label": "Charge Id",
            "index": 0
          },
          "amount": {
            "type": "number",
            "tooltip": "The amount to refund, if partial refund is desired.",
            "label": "Amount",
            "index": 1
          },
          "reason": {
            "type": "text",
            "tooltip": "Reason for the refund.",
            "label": "Reason",
            "index": 2,
            "options": [
              {
                "label": "Duplicate",
                "value": "duplicate"
              },
              {
                "label": "Fraudulent",
                "value": "fraudulent"
              },
              {
                "label": "Requested by Customer",
                "value": "requested_by_customer"
              }
            ]
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Id",
          "value": "id",
          "schema": {
            "type": "string",
            "example": "re_1ABC123DEF456"
          }
        },
        {
          "label": "Object",
          "value": "object",
          "schema": {
            "type": "string",
            "example": "refund"
          }
        },
        {
          "label": "Amount",
          "value": "amount",
          "schema": {
            "type": "number",
            "example": 2500
          }
        },
        {
          "label": "Status",
          "value": "status",
          "schema": {
            "type": "string",
            "example": "succeeded"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
