> ## Documentation Index
> Fetch the complete documentation index at: https://www.marqeta.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Fees

> Use the fees endpoint to assess fees from an account holder's general purpose account.

export const EndpointCard = ({method = "API", title, children, href, arrow = true}) => {
  const METHOD_STYLES = {
    GET: {
      bg: "mint-bg-green-400/20 dark:mint-bg-green-400/20",
      text: "mint-text-green-700 dark:mint-text-green-400",
      border: "mint-border-green-300 dark:mint-border-green-700"
    },
    POST: {
      bg: "mint-bg-blue-400/20 dark:mint-bg-blue-400/20",
      text: "mint-text-blue-700 dark:mint-text-blue-400"
    },
    PUT: {
      bg: "mint-bg-yellow-400/20 dark:mint-bg-yellow-400/20",
      text: "mint-text-yellow-700 dark:mint-text-yellow-400"
    },
    PATCH: {
      bg: "mint-bg-orange-400/20 dark:mint-bg-orange-400/20",
      text: "mint-text-orange-700 dark:mint-text-orange-400"
    },
    DELETE: {
      bg: "mint-bg-red-400/20 dark:mint-bg-red-400/20",
      text: "mint-text-red-700 dark:mint-text-red-400"
    },
    API: {
      bg: "mint-bg-black",
      text: "mint-text-white"
    }
  };
  const MethodBadge = ({method}) => {
    const style = METHOD_STYLES[method?.toUpperCase()] ?? METHOD_STYLES.GET;
    return <span className={`
          method-pill rounded-lg font-semibold px-1.5 py-0.5 text-xs leading-5 ${style.bg} ${style.text}`}>
        {method?.toUpperCase()}
      </span>;
  };
  const content = <div className="group flex items-center gap-4 border border-gray-200 dark:border-gray-700 rounded-xl p-5 hover:border-gray-400 dark:hover:border-gray-500 hover:shadow-md transition-all cursor-pointer">
      {}
      <div className="shrink-0">
        <MethodBadge method={method} />
      </div>
      {}
      <div className="flex-1 min-w-0">
        <p className="font-semibold text-gray-900 dark:text-white text-sm leading-snug">{title}</p>
        {children && <p className="mt-1 text-sm text-gray-500 dark:text-gray-400 line-clamp-2">{children}</p>}
      </div>
    </div>;
  if (!href) return content;
  return <a href={href} className="block no-underline border-b-0 mb-2">
      {content}
    </a>;
};

A `fees` resource represents a monetary assessment against an account holder’s general purpose account (GPA). Assessing a fee transfers funds from the account holder’s GPA account to your program’s fee account. By default, every account has a GPA account used for the funding of transfers.

You can assess fees either post-transaction or in real time. Real-time fee assessment ensures the account has sufficient funds available to cover both the transaction amount and the fee before authorization of the transaction. To assess fees in real time, you must create a real-time fee group using the `/realtimefeegroups` endpoint.

When assessing a post-transaction fee, you can either debit existing GPA funds, or pull in new funds from a funding source. To use existing GPA funds, use the `/feetransfers` endpoint. To pull in new funds, use the fees array in `/gpaorders`.

<Note>
  **Note**\
  If your program uses Gateway JIT Funding, you cannot assess fees.
</Note>

<h2 id="post_fees">
  Create fee
</h2>

**Action:** `POST`\
**Endpoint:** `/fees`

{/* <EndpointCard
title="Creates a fee"
path="/fees"
method="post"
/> */}

Use this endpoint to create a fee. Add the source details to the body of the request in [JSON](http://www.json.org/) format.

<h3 id="_request_body">
  Request body
</h3>

| Fields                                                                      | Description                                                                                                                                                                                                                                                                                                                                                                        |
| --------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| active<br /><br />boolean<br /><br />Optional                               | Indicates whether the fee is active.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`true`                                                                                                                                                                                                                                         |
| amount<br /><br />decimal<br /><br />Required                               | Amount of the fee.<br /><br />**Allowable Values:**<br /><br />decimal<br /><br />**Format:**<br />0.00                                                                                                                                                                                                                                                                            |
| category<br /><br />string<br /><br />Optional                              | Specifies if the fee is a standalone fee or a real-time fee.<br /><br />**Allowable Values:**<br /><br />`STANDALONE`, `REALTIME`                                                                                                                                                                                                                                                  |
| currency\_code<br /><br />string<br /><br />Required                        | Three-digit ISO 4217 currency code.<br /><br />**Allowable Values:**<br /><br />Valid three-digit <a href="https://www.iso.org/iso-4217-currency-codes.html" target="_blank" rel="noopener">ISO 4217 currency code</a>.                                                                                                                                                            |
| fee\_attributes<br /><br />object<br /><br />Optional                       | Describes the attributes of a fee.<br /><br />**Allowable Values:**<br /><br />`reason`, `region`, `status`, `transaction_type`                                                                                                                                                                                                                                                    |
| fee\_attributes.**reason**<br /><br />string<br /><br />Optional            | Describes the reason for the fee.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                         |
| fee\_attributes.**region**<br /><br />string<br /><br />Optional            | Describes the region in which the fee is assessed.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                        |
| fee\_attributes.**status**<br /><br />string<br /><br />Optional            | Describes the status of the fee.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                          |
| fee\_attributes.**transaction\_type**<br /><br />string<br /><br />Optional | Specifies the transaction type in which the fee was assessed.<br /><br />**Allowable Values:**<br /><br />- `authorization`<br />- `authorization.atm.withdrawal`<br />- `balanceinquiry`<br />- `fee.charge`<br />- `pindebit.atm.withdrawal`<br />- `pindebit.authorization`<br />- `pindebit.balanceinquiry`                                                                    |
| name<br /><br />string<br /><br />Required                                  | Name of the fee request.<br /><br />**Allowable Values:**<br /><br />1–50 chars                                                                                                                                                                                                                                                                                                    |
| tags<br /><br />string<br /><br />Optional                                  | Descriptive metadata about the fee.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                                                                                        |
| memo<br /><br />string<br /><br />Optional                                  | Additional text describing the fee.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                                                                                        |
| token<br /><br />string<br /><br />Optional                                 | Unique identifier of the fee.<br /><br />If you do not include a token, the system will generate one automatically. This token is necessary for use in other API calls, so Marqeta recommends that rather than let the system generate one, you use a simple string that is easy to remember. This value cannot be updated.<br /><br />**Allowable Values:**<br /><br />1–36 chars |
| type<br /><br />string<br /><br />Optional                                  | Specifies if the fee is a flat fee or a percentage of the transaction amount.<br /><br />**Allowable Values:**<br /><br />`FLAT`, `PERCENTAGE`                                                                                                                                                                                                                                     |

<h3 id="_sample_request_body">
  Sample request body
</h3>

```json JSON lines wrap theme={null}
{
  "token": "my_fee_01",
  "amount": 1,
  "name": "My Fee 01",
  "currency_code": "USD",
  "tags": "My Tags"
}
```

<h3 id="_response_body">
  Response body
</h3>

| Fields                                                                                    | Description                                                                                                                                                                                                                                                                                                     |
| ----------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| active<br /><br />boolean<br /><br />Returned                                             | Specifies whether the fee is active.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`true`                                                                                                                                                                      |
| amount<br /><br />decimal<br /><br />Returned                                             | Amount of the fee.<br /><br />**Allowable Values:**<br /><br />decimal<br /><br />**Format:**<br />0.00                                                                                                                                                                                                         |
| category<br /><br />string<br /><br />Conditionally returned                              | Specifies if the fee is a standalone fee or a real-time fee.<br /><br />**Allowable Values:**<br /><br />`REALTIME`, `STANDALONE`                                                                                                                                                                               |
| created\_time<br /><br />datetime<br /><br />Returned                                     | Date and time when the `fees` object was created, in UTC.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                                 |
| currency\_code<br /><br />string<br /><br />Returned                                      | Three-digit ISO 4217 currency code.<br /><br />**Allowable Values:**<br /><br />Valid three-digit <a href="https://www.iso.org/iso-4217-currency-codes.html" target="_blank" rel="noopener">ISO 4217 currency code</a>                                                                                          |
| fee\_attributes<br /><br />object<br /><br />Conditionally returned                       | Describes the attributes of a fee.<br /><br />**Allowable Values:**<br /><br />`reason`, `region`, `status`, `transaction_type`                                                                                                                                                                                 |
| fee\_attributes.**reason**<br /><br />string<br /><br />Conditionally returned            | Describes the reason for the fee.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                      |
| fee\_attributes.**region**<br /><br />string<br /><br />Conditionally returned            | Describes the region in which the fee is assessed.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                     |
| fee\_attributes.**status**<br /><br />string<br /><br />Conditionally returned            | Describes the status of the fee.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                       |
| fee\_attributes.**transaction\_type**<br /><br />string<br /><br />Conditionally returned | Specifies the transaction type in which the fee was assessed.<br /><br />**Allowable Values:**<br /><br />- `authorization`<br />- `authorization.atm.withdrawal`<br />- `balanceinquiry`<br />- `fee.charge`<br />- `pindebit.atm.withdrawal`<br />- `pindebit.authorization`<br />- `pindebit.balanceinquiry` |
| last\_modified\_time<br /><br />datetime<br /><br />Returned                              | Date and time when the `fees` object was last modified, in UTC.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                           |
| name<br /><br />string<br /><br />Returned                                                | Name of the fee.<br /><br />**Allowable Values:**<br /><br />50 char max                                                                                                                                                                                                                                        |
| tags<br /><br />string<br /><br />Conditionally returned                                  | Descriptive metadata about the fee.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                    |
| memo<br /><br />string<br /><br />Conditionally returned                                  | Additional text describing the fee.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                     |
| token<br /><br />string<br /><br />Returned                                               | Unique identifier of the `fees` object.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                 |
| type<br /><br />string<br /><br />Conditionally returned                                  | Specifies if the fee is a flat fee or a percentage of the transaction amount.<br /><br />**Allowable Values:**<br /><br />`FLAT`, `PERCENTAGE`                                                                                                                                                                  |

<h3 id="_sample_response_body">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
  "token": "my_fee_01",
  "active": true,
  "name": "My Fee 01",
  "amount": 1,
  "tags": "My Tags",
  "created_time": "2024-05-11T17:57:21Z",
  "last_modified_time": "2024-05-11T17:57:21Z",
  "currency_code": "USD"
}
```

<h2 id="get_fees">
  List fees
</h2>

**Action:** `GET`\
**Endpoint:** `/fees`

{/* <EndpointCard
title="Lists all fees"
path="/fees"
method="get"
/> */}

Use this endpoint to list existing fees.

This endpoint supports [field filtering](/core-api/field-filtering/) and [pagination](/core-api/sorting-and-pagination/).

<h3 id="_url_query_parameters">
  URL query parameters
</h3>

| Fields                                              | Description                                                                                                                                                                                                                                                                                                                                                                                                          |
| --------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| count<br /><br />integer<br /><br />Optional        | Number of resources to retrieve.<br /><br />**Allowable Values:**<br /><br />1-10<br /><br />**Default value:**<br />5                                                                                                                                                                                                                                                                                               |
| start\_index<br /><br />integer<br /><br />Optional | Sort order index of the first resource in the returned array.<br /><br />**Allowable Values:**<br /><br />Any integer<br /><br />**Default value:**<br />0                                                                                                                                                                                                                                                           |
| fields<br /><br />string<br /><br />Optional        | Comma-delimited list of fields to return (`field_1,field_2`, and so on). Leave blank to return all fields.<br /><br />**Allowable Values:**<br /><br />Comma-delimited list of fields, or blank                                                                                                                                                                                                                      |
| sort\_by<br /><br />string<br /><br />Optional      | Field on which to sort. Use any field in the resource model, or one of the system fields `lastModifiedTime` or `createdTime`. Prefix the field name with a hyphen (`-`) to sort in descending order. Omit the hyphen to sort in ascending order.<br /><br />**Allowable Values:**<br /><br />`createdTime`, `lastModifiedTime`, or any field in the resource model<br /><br />**Default value:**<br />`-createdTime` |

<h3 id="_response_body_2">
  Response body
</h3>

| Fields                                                                                            | Description                                                                                                                                                                                                                                                                                                     |
| ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| count<br /><br />integer<br /><br />Conditionally returned                                        | Number of resources to retrieve.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />1-10                                                                                                                                              |
| data<br /><br />array of objects<br /><br />Conditionally returned                                | An array of fee objects.<br /><br />Objects are returned as appropriate to your query.<br /><br />**Allowable Values:**<br /><br />Valid array of one or more fee objects                                                                                                                                       |
| data\[].**active**<br /><br />boolean<br /><br />Returned                                         | Specifies whether the fee is active.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`true`                                                                                                                                                                      |
| data\[].**amount**<br /><br />decimal<br /><br />Returned                                         | Amount of the fee.<br /><br />**Allowable Values:**<br /><br />decimal<br /><br />**Format:**<br />0.00                                                                                                                                                                                                         |
| data\[].**category**<br /><br />string<br /><br />Conditionally returned                          | Specifies if the fee is a standalone fee or a real-time fee.<br /><br />**Allowable Values:**<br /><br />`REALTIME`, `STANDALONE`                                                                                                                                                                               |
| data\[].**created\_time**<br /><br />datetime<br /><br />Returned                                 | Date and time when the `fees` object was created, in UTC.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                                 |
| data\[].**currency\_code**<br /><br />string<br /><br />Returned                                  | Three-digit ISO 4217 currency code.<br /><br />**Allowable Values:**<br /><br />Valid three-digit <a href="https://www.iso.org/iso-4217-currency-codes.html" target="_blank" rel="noopener">ISO 4217 currency code</a>                                                                                          |
| data\[].**fee\_attributes**<br /><br />object<br /><br />Conditionally returned                   | Describes the attributes of a fee.<br /><br />**Allowable Values:**<br /><br />`reason`, `region`, `status`, `transaction_type`                                                                                                                                                                                 |
| data\[].fee\_attributes.**reason**<br /><br />string<br /><br />Conditionally returned            | Describes the reason for the fee.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                      |
| data\[].fee\_attributes.**region**<br /><br />string<br /><br />Conditionally returned            | Describes the region in which the fee is assessed.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                     |
| data\[].fee\_attributes.**status**<br /><br />string<br /><br />Conditionally returned            | Describes the status of the fee.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                       |
| data\[].fee\_attributes.**transaction\_type**<br /><br />string<br /><br />Conditionally returned | Specifies the transaction type in which the fee was assessed.<br /><br />**Allowable Values:**<br /><br />- `authorization`<br />- `authorization.atm.withdrawal`<br />- `balanceinquiry`<br />- `fee.charge`<br />- `pindebit.atm.withdrawal`<br />- `pindebit.authorization`<br />- `pindebit.balanceinquiry` |
| data\[].**last\_modified\_time**<br /><br />datetime<br /><br />Returned                          | Date and time when the `fees` object was last modified, in UTC.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                           |
| data\[].**name**<br /><br />string<br /><br />Returned                                            | Name of the fee.<br /><br />**Allowable Values:**<br /><br />50 char max                                                                                                                                                                                                                                        |
| data\[].**tags**<br /><br />string<br /><br />Conditionally returned                              | Descriptive metadata about the fee.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                    |
| data\[].**memo**<br /><br />string<br /><br />Conditionally returned                              | Additional text describing the fee.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                     |
| data\[].**token**<br /><br />string<br /><br />Returned                                           | Unique identifier of the `fees` object.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                 |
| data\[].**type**<br /><br />string<br /><br />Conditionally returned                              | Specifies if the fee is a flat fee or a percentage of the transaction amount.<br /><br />**Allowable Values:**<br /><br />`FLAT`, `PERCENTAGE`                                                                                                                                                                  |
| end\_index<br /><br />integer<br /><br />Conditionally returned                                   | Sort order index of the last resource in the returned array.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                           |
| is\_more<br /><br />boolean<br /><br />Conditionally returned                                     | A value of `true` indicates that more unreturned resources exist. A value of `false` indicates that no more unreturned resources exist.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                            |
| start\_index<br /><br />integer<br /><br />Conditionally returned                                 | Sort order index of the first resource in the returned array.<br /><br />This field is returned if there are resources in your returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                          |

<h3 id="_sample_response_body_2">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
  "count": 1,
  "start_index": 0,
  "end_index": 1,
  "is_more": false,
  "data[]": {
    "token": "my_fee_02",
    "active": true,
    "name": "My Fee 02",
    "amount": 3,
    "tags": "My Tags",
    "created_time": "2024-05-11T18:03:39Z",
    "last_modified_time": "2024-05-11T18:03:39Z",
    "currency_code": "USD"
  }
}
```

<h2 id="put_fees_token">
  Update fee
</h2>

**Action:** `PUT`\
**Endpoint:** `/fees/{token}`

{/* <EndpointCard
title="Updates a specific fee"
path="/fees/{token}"
method="put"
/> */}

Use this endpoint to update a fee. Include the `token` as a path parameter to indicate the fee to update.

<h3 id="_url_path_parameters">
  URL path parameters
</h3>

| Fields                                      | Description                                                                                           |
| ------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Required | Unique identifier of the fee resource.<br /><br />**Allowable Values:**<br /><br />Existing fee token |

<h3 id="_request_body_2">
  Request body
</h3>

| Fields                                                                      | Description                                                                                                                                                                                                                                                                                                     |
| --------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| active<br /><br />boolean<br /><br />Optional                               | Indicates whether the fee is active.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`true`                                                                                                                                                                      |
| amount<br /><br />decimal<br /><br />Optional                               | Amount of the fee.<br /><br />**Allowable Values:**<br /><br />decimal<br /><br />**Format:**<br />0.00                                                                                                                                                                                                         |
| category<br /><br />string<br /><br />Optional                              | **Allowable Values:**<br /><br />`STANDALONE`, `REALTIME`                                                                                                                                                                                                                                                       |
| currency\_code<br /><br />string<br /><br />Optional                        | Three-digit ISO 4217 currency code.<br /><br />**Allowable Values:**<br /><br />Valid three-digit <a href="https://www.iso.org/iso-4217-currency-codes.html" target="_blank" rel="noopener">ISO 4217 currency code</a>.                                                                                         |
| fee\_attributes<br /><br />object<br /><br />Optional                       | Describes the attributes of a fee.<br /><br />**Allowable Values:**<br /><br />`reason`, `region`, `status`, `transaction_type`                                                                                                                                                                                 |
| fee\_attributes.**reason**<br /><br />string<br /><br />Optional            | Describes the reason for the fee.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                      |
| fee\_attributes.**region**<br /><br />string<br /><br />Optional            | Describes the region in which the fee is assessed.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                     |
| fee\_attributes.**status**<br /><br />string<br /><br />Optional            | Describes the status of the fee.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                       |
| fee\_attributes.**transaction\_type**<br /><br />string<br /><br />Optional | Specifies the transaction type in which the fee was assessed.<br /><br />**Allowable Values:**<br /><br />- `authorization`<br />- `authorization.atm.withdrawal`<br />- `balanceinquiry`<br />- `fee.charge`<br />- `pindebit.atm.withdrawal`<br />- `pindebit.authorization`<br />- `pindebit.balanceinquiry` |
| name<br /><br />string<br /><br />Optional                                  | Name of the fee request.<br /><br />**Allowable Values:**<br /><br />1–50 chars                                                                                                                                                                                                                                 |
| tags<br /><br />string<br /><br />Optional                                  | Descriptive metadata about the fee.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                     |
| memo<br /><br />string<br /><br />Optional                                  | Additional text describing the fee.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                     |
| type<br /><br />string<br /><br />Optional                                  | Specifies if this is a flat fee or a percentage of the transaction amount.<br /><br />**Allowable Values:**<br /><br />`FLAT`, `PERCENTAGE`                                                                                                                                                                     |

<h3 id="_sample_request_body_2">
  Sample request body
</h3>

```json JSON lines wrap theme={null}
{
  "active": false
}
```

<h3 id="_response_body_3">
  Response body
</h3>

| Fields                                                                                    | Description                                                                                                                                                                                                                                                                                                     |
| ----------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| active<br /><br />boolean<br /><br />Returned                                             | Specifies whether the fee is active.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`true`                                                                                                                                                                      |
| amount<br /><br />decimal<br /><br />Returned                                             | Amount of the fee.<br /><br />**Allowable Values:**<br /><br />decimal<br /><br />**Format:**<br />0.00                                                                                                                                                                                                         |
| category<br /><br />string<br /><br />Conditionally returned                              | Specifies if the fee is a standalone fee or a real-time fee.<br /><br />**Allowable Values:**<br /><br />`REALTIME`, `STANDALONE`                                                                                                                                                                               |
| created\_time<br /><br />datetime<br /><br />Returned                                     | Date and time when the `fees` object was created, in UTC.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                                 |
| currency\_code<br /><br />string<br /><br />Returned                                      | Three-digit ISO 4217 currency code.<br /><br />**Allowable Values:**<br /><br />Valid three-digit <a href="https://www.iso.org/iso-4217-currency-codes.html" target="_blank" rel="noopener">ISO 4217 currency code</a>                                                                                          |
| fee\_attributes<br /><br />object<br /><br />Conditionally returned                       | Describes the attributes of a fee.<br /><br />**Allowable Values:**<br /><br />`reason`, `region`, `status`, `transaction_type`                                                                                                                                                                                 |
| fee\_attributes.**reason**<br /><br />string<br /><br />Conditionally returned            | Describes the reason for the fee.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                      |
| fee\_attributes.**region**<br /><br />string<br /><br />Conditionally returned            | Describes the region in which the fee is assessed.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                     |
| fee\_attributes.**status**<br /><br />string<br /><br />Conditionally returned            | Describes the status of the fee.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                       |
| fee\_attributes.**transaction\_type**<br /><br />string<br /><br />Conditionally returned | Specifies the transaction type in which the fee was assessed.<br /><br />**Allowable Values:**<br /><br />- `authorization`<br />- `authorization.atm.withdrawal`<br />- `balanceinquiry`<br />- `fee.charge`<br />- `pindebit.atm.withdrawal`<br />- `pindebit.authorization`<br />- `pindebit.balanceinquiry` |
| last\_modified\_time<br /><br />datetime<br /><br />Returned                              | Date and time when the `fees` object was last modified, in UTC.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                           |
| name<br /><br />string<br /><br />Returned                                                | Name of the fee.<br /><br />**Allowable Values:**<br /><br />50 char max                                                                                                                                                                                                                                        |
| tags<br /><br />string<br /><br />Conditionally returned                                  | Descriptive metadata about the fee.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                    |
| memo<br /><br />string<br /><br />Conditionally returned                                  | Additional text describing the fee.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                     |
| token<br /><br />string<br /><br />Returned                                               | Unique identifier of the `fees` object.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                 |
| type<br /><br />string<br /><br />Conditionally returned                                  | Specifies if the fee is a flat fee or a percentage of the transaction amount.<br /><br />**Allowable Values:**<br /><br />`FLAT`, `PERCENTAGE`                                                                                                                                                                  |

<h3 id="_sample_response_body_3">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
  "token": "my_fee_01",
  "active": false,
  "name": "My Fee 01",
  "amount": 1,
  "tags": "My Tags",
  "created_time": "2024-05-11T17:57:21Z",
  "last_modified_time": "2024-05-11T17:57:21Z",
  "currency_code": "USD"
}
```

<h2 id="get_fees_token">
  Retrieve fee
</h2>

**Action:** `GET`\
**Endpoint:** `/fees/{token}`

{/* <EndpointCard
title="Returns a specific fee"
path="/fees/{token}"
method="get"
/> */}

Use this endpoint to retrieve a fee. Include the `token` path parameter to specify the fee to return.

<h3 id="_url_path_parameters_2">
  URL path parameters
</h3>

| Fields                                      | Description                                                                                           |
| ------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Required | Unique identifier of the fee resource.<br /><br />**Allowable Values:**<br /><br />Existing fee token |

<h3 id="_response_body_4">
  Response body
</h3>

| Fields                                                                                    | Description                                                                                                                                                                                                                                                                                                     |
| ----------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| active<br /><br />boolean<br /><br />Returned                                             | Specifies whether the fee is active.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`true`                                                                                                                                                                      |
| amount<br /><br />decimal<br /><br />Returned                                             | Amount of the fee.<br /><br />**Allowable Values:**<br /><br />decimal<br /><br />**Format:**<br />0.00                                                                                                                                                                                                         |
| category<br /><br />string<br /><br />Conditionally returned                              | Specifies if the fee is a standalone fee or a real-time fee.<br /><br />**Allowable Values:**<br /><br />`REALTIME`, `STANDALONE`                                                                                                                                                                               |
| created\_time<br /><br />datetime<br /><br />Returned                                     | Date and time when the `fees` object was created, in UTC.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                                 |
| currency\_code<br /><br />string<br /><br />Returned                                      | Three-digit ISO 4217 currency code.<br /><br />**Allowable Values:**<br /><br />Valid three-digit <a href="https://www.iso.org/iso-4217-currency-codes.html" target="_blank" rel="noopener">ISO 4217 currency code</a>                                                                                          |
| fee\_attributes<br /><br />object<br /><br />Conditionally returned                       | Describes the attributes of a fee.<br /><br />**Allowable Values:**<br /><br />`reason`, `region`, `status`, `transaction_type`                                                                                                                                                                                 |
| fee\_attributes.**reason**<br /><br />string<br /><br />Conditionally returned            | Describes the reason for the fee.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                      |
| fee\_attributes.**region**<br /><br />string<br /><br />Conditionally returned            | Describes the region in which the fee is assessed.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                     |
| fee\_attributes.**status**<br /><br />string<br /><br />Conditionally returned            | Describes the status of the fee.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                       |
| fee\_attributes.**transaction\_type**<br /><br />string<br /><br />Conditionally returned | Specifies the transaction type in which the fee was assessed.<br /><br />**Allowable Values:**<br /><br />- `authorization`<br />- `authorization.atm.withdrawal`<br />- `balanceinquiry`<br />- `fee.charge`<br />- `pindebit.atm.withdrawal`<br />- `pindebit.authorization`<br />- `pindebit.balanceinquiry` |
| last\_modified\_time<br /><br />datetime<br /><br />Returned                              | Date and time when the `fees` object was last modified, in UTC.<br /><br />**Allowable Values:**<br /><br />datetime<br /><br />**Format:**<br />yyyy-MM-ddThh:mm:ssZ                                                                                                                                           |
| name<br /><br />string<br /><br />Returned                                                | Name of the fee.<br /><br />**Allowable Values:**<br /><br />50 char max                                                                                                                                                                                                                                        |
| tags<br /><br />string<br /><br />Conditionally returned                                  | Descriptive metadata about the fee.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                    |
| memo<br /><br />string<br /><br />Conditionally returned                                  | Additional text describing the fee.<br /><br />**Allowable Values:**<br /><br />1–255 chars                                                                                                                                                                                                                     |
| token<br /><br />string<br /><br />Returned                                               | Unique identifier of the `fees` object.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                 |
| type<br /><br />string<br /><br />Conditionally returned                                  | Specifies if the fee is a flat fee or a percentage of the transaction amount.<br /><br />**Allowable Values:**<br /><br />`FLAT`, `PERCENTAGE`                                                                                                                                                                  |

<h3 id="_sample_response_body_4">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
  "token": "my_fee_01",
  "active": true,
  "name": "My Fee 01",
  "amount": 1,
  "tags": "My Tags",
  "created_time": "2024-05-11T17:57:21Z",
  "last_modified_time": "2024-05-11T17:57:21Z",
  "currency_code": "USD"
}
```


## Related topics

- [Fee Charges](/docs/core-api/fee-charges.md)
- [Fee Refunds](/docs/core-api/fee-refunds.md)
- [About Fees](/docs/developer-guides/about-fees.md)
- [Fraud Feedback](/docs/core-api/fraud-feedback.md)
- [Using the Fraud Feedback API](/docs/developer-guides/using-fraud-feedback-api.md)
