# The Application Fee object

### The Application Fee object

```json
{
  "id": "fee_1B73DOKbnvuxQXGuhY8Aw0TN",
  "object": "application_fee",
  "account": "acct_164wxjKbnvuxQXGu",
  "amount": 105,
  "amount_refunded": 105,
  "application": "ca_32D88BD1qLklliziD7gYQvctJIhWBSQ7",
  "balance_transaction": "txn_1032HU2eZvKYlo2CEPtcnUvl",
  "charge": "ch_1B73DOKbnvuxQXGurbwPqzsu",
  "created": 1506609734,
  "currency": "gbp",
  "livemode": false,
  "originating_transaction": null,
  "refunded": true,
  "refunds": {
    "object": "list",
    "data": [
      {
        "id": "fr_1MBoU0KbnvuxQXGu2wCCz4Bb",
        "object": "fee_refund",
        "amount": 38,
        "balance_transaction": null,
        "created": 1670284441,
        "currency": "usd",
        "fee": "fee_1B73DOKbnvuxQXGuhY8Aw0TN",
        "metadata": {}
      },
      {
        "id": "fr_D0s7fGBKB40Twy",
        "object": "fee_refund",
        "amount": 100,
        "balance_transaction": "txn_1CaqNg2eZvKYlo2C75cA3Euk",
        "created": 1528486576,
        "currency": "usd",
        "fee": "fee_1B73DOKbnvuxQXGuhY8Aw0TN",
        "metadata": {}
      }
    ],
    "has_more": false,
    "url": "/v1/application_fees/fee_1B73DOKbnvuxQXGuhY8Aw0TN/refunds"
  },
  "fee_source": {
    "charge": "ch_1B73DOKbnvuxQXGurbwPqzsu",
    "type": "charge"
  }
}
```

## Attributes

- `id` (string)
  Unique identifier for the object.

- `object` (string)
  String representing the object’s type. Objects of the same type share the same value.

- `account` (string, expandable (can be expanded into an object with the `expand` request parameter))
  ID of the Stripe account this fee was taken from.

- `amount` (integer)
  Amount earned, in the smallest currency unit.

- `amount_refunded` (integer)
  Amount in the smallest currency unit refunded (can be less than the amount attribute on the fee if a partial refund was issued)

- `application` (string, expandable (can be expanded into an object with the `expand` request parameter))
  ID of the Connect application that earned the fee.

- `balance_transaction` (string, nullable, expandable (can be expanded into an object with the `expand` request parameter))
  Balance transaction that describes the impact of this collected application fee on your account balance (not including refunds).

- `charge` (string, expandable (can be expanded into an object with the `expand` request parameter))
  ID of the charge that the application fee was taken from.

- `created` (timestamp)
  Time at which the object was created. Measured in seconds since the Unix epoch.

- `currency` (enum)
  Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://docs.stripe.com/currencies.md).

- [`fee_source`](https://docs.stripe.com/api/application_fees/object.md?query=fee_source) (object, nullable)
  Polymorphic source of the application fee. Includes the ID of the object the application fee was created from.

- `livemode` (boolean)
  If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.

- `originating_transaction` (string, nullable, expandable (can be expanded into an object with the `expand` request parameter))
  ID of the corresponding charge on the platform account, if this fee was the result of a charge using the `destination` parameter.

- `refunded` (boolean)
  Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false.

- [`refunds`](https://docs.stripe.com/api/application_fees/object.md?query=refunds) (object)
  A list of refunds that have been applied to the fee.
